mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-11-26 06:40:42 +00:00
fix linting
This commit is contained in:
parent
2b6676636b
commit
6cc9df1a3e
@ -8,9 +8,9 @@ from ansiblelater.command.candidates import Error
|
|||||||
from ansiblelater.command.candidates import Result
|
from ansiblelater.command.candidates import Result
|
||||||
from ansiblelater.command.candidates import Template
|
from ansiblelater.command.candidates import Template
|
||||||
from ansiblelater.utils import count_spaces
|
from ansiblelater.utils import count_spaces
|
||||||
|
from ansiblelater.utils.rulehelper import get_first_cmd_arg
|
||||||
from ansiblelater.utils.rulehelper import get_normalized_tasks
|
from ansiblelater.utils.rulehelper import get_normalized_tasks
|
||||||
from ansiblelater.utils.rulehelper import get_normalized_yaml
|
from ansiblelater.utils.rulehelper import get_normalized_yaml
|
||||||
from ansiblelater.utils.rulehelper import get_first_cmd_arg
|
|
||||||
|
|
||||||
|
|
||||||
def check_braces_spaces(candidate, settings):
|
def check_braces_spaces(candidate, settings):
|
||||||
@ -225,13 +225,13 @@ def check_command_instead_of_argument(candidate, settings):
|
|||||||
tasks, errors = get_normalized_tasks(candidate, settings)
|
tasks, errors = get_normalized_tasks(candidate, settings)
|
||||||
commands = ["command", "shell", "raw"]
|
commands = ["command", "shell", "raw"]
|
||||||
arguments = {
|
arguments = {
|
||||||
'chown': 'owner',
|
"chown": "owner",
|
||||||
'chmod': 'mode',
|
"chmod": "mode",
|
||||||
'chgrp': 'group',
|
"chgrp": "group",
|
||||||
'ln': 'state=link',
|
"ln": "state=link",
|
||||||
'mkdir': 'state=directory',
|
"mkdir": "state=directory",
|
||||||
'rmdir': 'state=absent',
|
"rmdir": "state=absent",
|
||||||
'rm': 'state=absent'
|
"rm": "state=absent"
|
||||||
}
|
}
|
||||||
description = "{exec} used in place of file modules argument {arg}"
|
description = "{exec} used in place of file modules argument {arg}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user