From b1dd83cea63b71e59a8929f3cd70ce1313b07fab Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 31 Jan 2021 22:54:56 +0100 Subject: [PATCH] fix linting --- ansiblelater/rules/CheckChangedInWhen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansiblelater/rules/CheckChangedInWhen.py b/ansiblelater/rules/CheckChangedInWhen.py index 3df6d14..3b55c84 100644 --- a/ansiblelater/rules/CheckChangedInWhen.py +++ b/ansiblelater/rules/CheckChangedInWhen.py @@ -36,7 +36,7 @@ class CheckChangedInWhen(StandardBase): when = None if task["__ansible_action_type__"] == "task": - when = task.get('when') + when = task.get("when") if isinstance(when, str): when = [when] @@ -54,5 +54,5 @@ class CheckChangedInWhen(StandardBase): return False return any( - changed in item for changed in ['.changed', '|changed', '["changed"]', "['changed']"] + changed in item for changed in [".changed", "|changed", '["changed"]', "['changed']"] )