encode module arguments to fix comparison
This commit is contained in:
parent
4edb2af1cd
commit
32f7e7c37a
|
@ -1,2 +1,2 @@
|
||||||
* INTERNAL
|
* BUGFIX
|
||||||
* maintenance and refactoring release, no changes
|
* encode module arguments to fix comparison
|
||||||
|
|
|
@ -35,7 +35,10 @@ def check_native_yaml(candidate, settings):
|
||||||
break
|
break
|
||||||
|
|
||||||
action = normal_form["action"]["__ansible_module__"]
|
action = normal_form["action"]["__ansible_module__"]
|
||||||
arguments = normal_form["action"]["__ansible_arguments__"]
|
arguments = [
|
||||||
|
bytes(x, "utf-8").decode("unicode_escape")
|
||||||
|
for x in normal_form["action"]["__ansible_arguments__"]
|
||||||
|
]
|
||||||
# Cope with `set_fact` where task["set_fact"] is None
|
# Cope with `set_fact` where task["set_fact"] is None
|
||||||
if not task.get(action):
|
if not task.get(action):
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue