mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 19:01:26 -07:00
parent
4e325274d6
commit
2077e32ddd
2 changed files with 3 additions and 3 deletions
|
@ -66,10 +66,10 @@ class Cli(CliBase):
|
|||
response = self.execute(commands)
|
||||
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:
|
||||
config.insert(0, 'configure')
|
||||
response = self.execute(config)
|
||||
self.execute(config)
|
||||
except NetworkError:
|
||||
# discard any changes in case of failure
|
||||
self.execute(['exit discard'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue