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:
Ganesh Nalawade 2017-11-09 22:43:49 +05:30 committed by GitHub
commit 37b0537279
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 4 deletions

View file

@ -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 '