fix: typos in commands, deprecation messages
This commit is contained in:
parent
d9a8313b70
commit
d88c376201
13
wildfly.py
13
wildfly.py
@ -129,7 +129,7 @@ def read_args(task_args, check_mode):
|
|||||||
local_auth = task_args.get('local_auth', True)
|
local_auth = task_args.get('local_auth', True)
|
||||||
cli_command = (
|
cli_command = (
|
||||||
'{} {} {} {} {} --connect --output-json'
|
'{} {} {} {} {} --connect --output-json'
|
||||||
'--no-color-output --no-output-paging'
|
' --no-color-output --no-output-paging'
|
||||||
).format(
|
).format(
|
||||||
cli_path,
|
cli_path,
|
||||||
(cli_options if cli_options else ''),
|
(cli_options if cli_options else ''),
|
||||||
@ -141,20 +141,19 @@ def read_args(task_args, check_mode):
|
|||||||
# deprecated cli_cmd option
|
# deprecated cli_cmd option
|
||||||
if task_args.get('cli_cmd', False):
|
if task_args.get('cli_cmd', False):
|
||||||
display.deprecated(
|
display.deprecated(
|
||||||
'"cli_cmd" argument should not be used. Please use '
|
'"cli_cmd" argument should not be used. Please use the '
|
||||||
'"cli_path", "cli_options", "conroller", "user", "password", '
|
'"cli_path", "cli_options", "controller", "user", "password", '
|
||||||
'and "local_auth" arguments instead')
|
'and "local_auth" arguments instead')
|
||||||
cli_command = (
|
cli_command = (
|
||||||
'{} --connect --output-json'
|
'{} --connect --output-json --no-color-output --no-output-paging'
|
||||||
' --no-color-output --no-output-paging'
|
).format(task_args.get('cli_cmd'))
|
||||||
).format(task_args.get('cli_cmd'))
|
|
||||||
|
|
||||||
# desired configuration
|
# desired configuration
|
||||||
config = task_args.get('config', False)
|
config = task_args.get('config', False)
|
||||||
if not config and task_args.get('config_list', False):
|
if not config and task_args.get('config_list', False):
|
||||||
config = task_args.get('config_list')
|
config = task_args.get('config_list')
|
||||||
display.deprecated('"config_list" argument should not be used. '
|
display.deprecated('"config_list" argument should not be used. '
|
||||||
'Please use "config" argument instead')
|
'Please use the "config" argument instead')
|
||||||
|
|
||||||
# validate config argument
|
# validate config argument
|
||||||
if isinstance(config, list):
|
if isinstance(config, list):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user