diff options
| author | Egor Tensin <egor@tensin.name> | 2026-05-17 11:52:31 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-05-17 11:52:31 +0200 |
| commit | 5b1e07450fec0f015de629131bc4e620e07889fa (patch) | |
| tree | d3160f3a4cb6ec8279fe43364591681c88ca0b9f /plugins/action/etckeeper_commit.py | |
| parent | workflows: add CI workflow (diff) | |
| download | infra-ansible-5b1e07450fec0f015de629131bc4e620e07889fa.tar.gz infra-ansible-5b1e07450fec0f015de629131bc4e620e07889fa.zip | |
reformat Python files
Diffstat (limited to '')
| -rwxr-xr-x | plugins/action/etckeeper_commit.py | 7 |
1 files changed, 5 insertions, 2 deletions
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) |
