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
pull/56466/head
Joseph Kennedy 5 years ago committed by Nathaniel Case
parent 8ce09a0057
commit 4928373a8b

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

Loading…
Cancel
Save