diff --git a/ansiblelater/rules/CheckNativeYaml.py b/ansiblelater/rules/CheckNativeYaml.py index 9d092a7..7f01802 100644 --- a/ansiblelater/rules/CheckNativeYaml.py +++ b/ansiblelater/rules/CheckNativeYaml.py @@ -31,6 +31,6 @@ class CheckNativeYaml(StandardBase): continue # strip additional newlines off task[action] task_action = bytes(repr(task[action].strip()), "utf-8").decode("unicode_escape") - if task_action.split() != arguments: + if task_action.strip("'").split() != arguments: errors.append(self.Error(task["__line__"], self.helptext)) return self.Result(candidate.path, errors)