mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-11-22 12:50:42 +00:00
fix linting
This commit is contained in:
parent
583cf84310
commit
b1dd83cea6
@ -36,7 +36,7 @@ class CheckChangedInWhen(StandardBase):
|
|||||||
when = None
|
when = None
|
||||||
|
|
||||||
if task["__ansible_action_type__"] == "task":
|
if task["__ansible_action_type__"] == "task":
|
||||||
when = task.get('when')
|
when = task.get("when")
|
||||||
|
|
||||||
if isinstance(when, str):
|
if isinstance(when, str):
|
||||||
when = [when]
|
when = [when]
|
||||||
@ -54,5 +54,5 @@ class CheckChangedInWhen(StandardBase):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
return any(
|
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