mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00: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:
@@ -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 '
|
||||
|
||||
Reference in New Issue
Block a user