diff --git a/changelogs/fragments/110-fix-exos-save-config.yaml b/changelogs/fragments/110-fix-exos-save-config.yaml new file mode 100644 index 00000000..54ff58f4 --- /dev/null +++ b/changelogs/fragments/110-fix-exos-save-config.yaml @@ -0,0 +1,2 @@ +bugfixes: + - exos_config - fix a hang due to an unexpected prompt during save_when (https://github.com/ansible-collections/community.network/pull/110). diff --git a/plugins/modules/network/exos/exos_config.py b/plugins/modules/network/exos/exos_config.py index 77e5f585..7267b392 100644 --- a/plugins/modules/network/exos/exos_config.py +++ b/plugins/modules/network/exos/exos_config.py @@ -265,7 +265,7 @@ def save_config(module, result): result['changed'] = True if not module.check_mode: command = {"command": "save configuration", - "prompt": "Do you want to save configuration", "answer": "y"} + "prompt": ["Do you want to save configuration", "Do you want to continue"], "answer": "y"} run_commands(module, command) else: module.warn('Skipping command `save configuration` '