fix linting

This commit is contained in:
Robert Kaussow 2021-01-20 17:26:47 +01:00
parent 2b6676636b
commit 6cc9df1a3e
Signed by: xoxys
GPG Key ID: 65362AE74AF98B61
1 changed files with 8 additions and 8 deletions

View File

@ -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}"