Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PR #110/ac1351a5 backport][stable-1] Fix exos_config:save_when when a stopped process is present #343

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions changelogs/fragments/110-fix-exos-save-config.yaml
Original file line number Diff line number Diff line change
@@ -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).
2 changes: 1 addition & 1 deletion plugins/modules/network/exos/exos_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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` '
Expand Down