mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Fix ios_config file prompt issue (#32744)
Fixes #23263 Add a carriage return (\r) at end on copy config command which results in prompt on cli terminal
This commit is contained in:
parent
316e7939d6
commit
37b0537279
3 changed files with 27 additions and 4 deletions
|
@ -483,7 +483,7 @@ def main():
|
|||
if running_config.sha1 != startup_config.sha1 or module.params['save_when'] == 'always':
|
||||
result['changed'] = True
|
||||
if not module.check_mode:
|
||||
run_commands(module, 'copy running-config startup-config')
|
||||
run_commands(module, 'copy running-config startup-config\r')
|
||||
else:
|
||||
module.warn('Skipping command `copy running-config startup-config` '
|
||||
'due to check_mode. Configuration not copied to '
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue