1
0
Fork 0
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:
Senthil Kumar Ganesan 2016-09-19 14:41:30 -07:00
parent 42a2875b83
commit 081730851c

View file

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