summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/action/etckeeper_commit.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/action/etckeeper_commit.py')
-rwxr-xr-xplugins/action/etckeeper_commit.py7
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)