fix linting

This commit is contained in:
Robert Kaussow 2021-01-31 22:54:56 +01:00
parent 583cf84310
commit b1dd83cea6
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61

View File

@ -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']"]
)