fix: typos in commands, deprecation messages

This commit is contained in:
Mauro Torrez 2020-10-06 09:51:56 -03:00
parent d9a8313b70
commit d88c376201

View File

@ -129,7 +129,7 @@ def read_args(task_args, check_mode):
local_auth = task_args.get('local_auth', True)
cli_command = (
'{} {} {} {} {} --connect --output-json'
'--no-color-output --no-output-paging'
' --no-color-output --no-output-paging'
).format(
cli_path,
(cli_options if cli_options else ''),
@ -141,20 +141,19 @@ def read_args(task_args, check_mode):
# deprecated cli_cmd option
if task_args.get('cli_cmd', False):
display.deprecated(
'"cli_cmd" argument should not be used. Please use '
'"cli_path", "cli_options", "conroller", "user", "password", '
'"cli_cmd" argument should not be used. Please use the '
'"cli_path", "cli_options", "controller", "user", "password", '
'and "local_auth" arguments instead')
cli_command = (
'{} --connect --output-json'
' --no-color-output --no-output-paging'
).format(task_args.get('cli_cmd'))
'{} --connect --output-json --no-color-output --no-output-paging'
).format(task_args.get('cli_cmd'))
# desired configuration
config = task_args.get('config', False)
if not config and task_args.get('config_list', False):
config = task_args.get('config_list')
display.deprecated('"config_list" argument should not be used. '
'Please use "config" argument instead')
'Please use the "config" argument instead')
# validate config argument
if isinstance(config, list):