encode module arguments to fix comparison

This commit is contained in:
Robert Kaussow 2020-05-19 10:40:29 +02:00
parent 4edb2af1cd
commit 32f7e7c37a
2 changed files with 6 additions and 3 deletions

View File

@ -1,2 +1,2 @@
* INTERNAL
* maintenance and refactoring release, no changes
* BUGFIX
* encode module arguments to fix comparison

View File

@ -35,7 +35,10 @@ def check_native_yaml(candidate, settings):
break
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
if not task.get(action):
continue