mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-11-21 20:30:42 +00:00
fix linting
This commit is contained in:
parent
583cf84310
commit
b1dd83cea6
@ -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']"]
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user