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

ios_config: Handle confirmation prompt after version change (#57745) #57749

Open
wants to merge 2 commits into
base: devel
from
Open
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Next

ios_config: Handle confirmation prompt after version change (#57745)

  • Loading branch information...
jrunu committed Jun 12, 2019
commit 5bfd9a7181cf92c863c1e8ba131bf8c30132c242
@@ -392,7 +392,10 @@ def get_running_config(module, current_config=None, flags=None):
def save_config(module, result):
result['changed'] = True
if not module.check_mode:
run_commands(module, 'copy running-config startup-config\r')
try:
get_connection(module).send_command(command='copy running-config startup-config\r', prompt="Overwrite the previous NVRAM configuration\?\[confirm\]", answer="\n")
except ConnectionError as exc:
module.fail_json(msg=to_text(exc))
else:
module.warn('Skipping command `copy running-config startup-config` '
'due to check_mode. Configuration not copied to '
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.