From e74cd668d9995b8e6726db47a38ad948a182c3dd Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Tue, 8 Jun 2021 09:24:17 +0200 Subject: [PATCH] remove doubleslash entries from CheckNativeYaml task_action --- ansiblelater/rules/CheckNativeYaml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansiblelater/rules/CheckNativeYaml.py b/ansiblelater/rules/CheckNativeYaml.py index 645a00e..2ae3eb0 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(task[action].strip(), "utf-8").decode("utf8", "ignore") - if task_action.split() != arguments: + if list(filter(lambda a: a != "\\", task_action.split())) != arguments: errors.append(self.Error(task["__line__"], self.helptext)) return self.Result(candidate.path, errors)