From 4928373a8b7a1c1bf0c7140f8949ce0809425e90 Mon Sep 17 00:00:00 2001 From: Joseph Kennedy Date: Wed, 15 May 2019 10:25:14 -0400 Subject: [PATCH] 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 --- lib/ansible/modules/network/aireos/aireos_command.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/ansible/modules/network/aireos/aireos_command.py b/lib/ansible/modules/network/aireos/aireos_command.py index e52cc5a1f47..2c759c9c8c5 100644 --- a/lib/ansible/modules/network/aireos/aireos_command.py +++ b/lib/ansible/modules/network/aireos/aireos_command.py @@ -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