1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Allow config commands in aireos_command to support prompts (#56130)

* Switch failure on config command to just a warning.

* Change wording in documentation

* Missing whitespace
This commit is contained in:
Joseph Kennedy 2019-05-15 10:25:14 -04:00 committed by Nathaniel Case
parent 8ce09a0057
commit 4928373a8b

View file

@ -22,8 +22,8 @@ description:
read from the device. This module includes an
argument that will cause the module to wait for a specific condition
before returning or timing out if the condition is not met.
- This module does not support running commands in configuration mode.
Please use M(aireos_config) to configure WLC devices.
- Commands run in configuration mode with this module are not
idempotent. Please use M(aireos_config) to configure WLC devices.
extends_documentation_fragment: aireos
options:
commands:
@ -143,9 +143,9 @@ def parse_commands(module, warnings):
'executing `%s`' % item['command']
)
elif item['command'].startswith('conf'):
module.fail_json(
msg='aireos_command does not support running config mode '
'commands. Please use aireos_config instead'
warnings.append(
'commands run in config mode with aireos_command are not '
'idempotent. Please use aireos_config instead'
)
return commands