mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix to handle the prompt on saving startup config
This commit is contained in:
parent
42a2875b83
commit
081730851c
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue