mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-11-25 22:30:42 +00:00
remove doubleslash entries from CheckNativeYaml task_action
This commit is contained in:
parent
3e6740d498
commit
e74cd668d9
@ -31,6 +31,6 @@ class CheckNativeYaml(StandardBase):
|
|||||||
continue
|
continue
|
||||||
# strip additional newlines off task[action]
|
# strip additional newlines off task[action]
|
||||||
task_action = bytes(task[action].strip(), "utf-8").decode("utf8", "ignore")
|
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))
|
errors.append(self.Error(task["__line__"], self.helptext))
|
||||||
return self.Result(candidate.path, errors)
|
return self.Result(candidate.path, errors)
|
||||||
|
Loading…
Reference in New Issue
Block a user