mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-11-22 21:00:44 +00:00
decode task actions to prevent errors
This commit is contained in:
parent
d622c9e3bc
commit
1d455ab85c
@ -1,2 +1,2 @@
|
|||||||
* BUGFIX
|
* BUGFIX
|
||||||
* replace removed dependency `ansible.module_utils.parsing.convert_bool`
|
* decode task actions to prevent errors on multiline strings
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
__author__ = "Robert Kaussow"
|
__author__ = "Robert Kaussow"
|
||||||
__project__ = "ansible-later"
|
__project__ = "ansible-later"
|
||||||
__version__ = "0.3.0"
|
__version__ = "0.3.1"
|
||||||
__license__ = "MIT"
|
__license__ = "MIT"
|
||||||
__maintainer__ = "Robert Kaussow"
|
__maintainer__ = "Robert Kaussow"
|
||||||
__email__ = "mail@geeklabor.de"
|
__email__ = "mail@geeklabor.de"
|
||||||
|
@ -42,7 +42,8 @@ def check_native_yaml(candidate, settings):
|
|||||||
if isinstance(task[action], dict):
|
if isinstance(task[action], dict):
|
||||||
continue
|
continue
|
||||||
# strip additional newlines off task[action]
|
# strip additional newlines off task[action]
|
||||||
if task[action].strip().split() != arguments:
|
task_action = bytes(task[action].strip(), "utf-8").decode("unicode_escape")
|
||||||
|
if task_action.split() != arguments:
|
||||||
errors.append(Error(task["__line__"], description))
|
errors.append(Error(task["__line__"], description))
|
||||||
return Result(candidate.path, errors)
|
return Result(candidate.path, errors)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user