From 5b1e07450fec0f015de629131bc4e620e07889fa Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 17 May 2026 11:52:31 +0200 Subject: reformat Python files --- plugins/action/etckeeper_commit.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/action/etckeeper_commit.py') diff --git a/plugins/action/etckeeper_commit.py b/plugins/action/etckeeper_commit.py index d16e66f..06c7be0 100755 --- a/plugins/action/etckeeper_commit.py +++ b/plugins/action/etckeeper_commit.py @@ -24,11 +24,14 @@ class ActionModule(ActionBase): if allowlist: unexpected = [ - path for path in dirty_files + path + for path in dirty_files if not any([pattern.fullmatch(path) for pattern in allowlist]) ] if unexpected: - raise AnsibleActionFail(f"Unexpected modifications in repository:\n{'\n'.join(unexpected)}") + raise AnsibleActionFail( + f"Unexpected modifications in repository:\n{'\n'.join(unexpected)}" + ) return self._commit(msg, task_vars) -- cgit v1.3