mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Merge pull request #17651 from skg-net/bugfix
Fix to handle the prompt on saving startup config
This commit is contained in:
@@ -123,7 +123,10 @@ class Cli(CliBase):
|
||||
|
||||
|
||||
def save_config(self):
|
||||
self.execute(['copy running-config startup-config'])
|
||||
cmdlist = list()
|
||||
cmd = 'copy running-config startup-config'
|
||||
cmdlist.append(Command(cmd, prompt=self.WARNING_PROMPTS_RE, response='yes'))
|
||||
self.execute(cmdlist)
|
||||
|
||||
|
||||
Cli = register_transport('cli', default=True)(Cli)
|
||||
|
||||
Reference in New Issue
Block a user