mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
4e325274d6
commit
2077e32ddd
2 changed files with 3 additions and 3 deletions
|
@ -262,7 +262,7 @@ class CliBase(object):
|
||||||
def get_config(self, commands):
|
def get_config(self, commands):
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
def load_config(self, commands):
|
def load_config(self, commands, **kwargs):
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
def save_config(self):
|
def save_config(self):
|
||||||
|
|
|
@ -66,10 +66,10 @@ class Cli(CliBase):
|
||||||
response = self.execute(commands)
|
response = self.execute(commands)
|
||||||
return response[1:-2]
|
return response[1:-2]
|
||||||
|
|
||||||
def load_config(self, config, commit=False, comment=None, save=False):
|
def load_config(self, config, commit=False, comment=None, save=False, **kwargs):
|
||||||
try:
|
try:
|
||||||
config.insert(0, 'configure')
|
config.insert(0, 'configure')
|
||||||
response = self.execute(config)
|
self.execute(config)
|
||||||
except NetworkError:
|
except NetworkError:
|
||||||
# discard any changes in case of failure
|
# discard any changes in case of failure
|
||||||
self.execute(['exit discard'])
|
self.execute(['exit discard'])
|
||||||
|
|
Loading…
Reference in a new issue