Skip to content

Commit

Permalink
Vyos cleanup
Browse files Browse the repository at this point in the history
Addresses ansible#17416
  • Loading branch information
Qalthos authored Sep 12, 2016
1 parent 4e32527 commit 2077e32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/ansible/module_utils/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def configure(self, commands):
def get_config(self, commands):
raise NotImplementedError

def load_config(self, commands):
def load_config(self, commands, **kwargs):
raise NotImplementedError

def save_config(self):
Expand Down
4 changes: 2 additions & 2 deletions lib/ansible/module_utils/vyos.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ def configure(self, config):
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'])
Expand Down

0 comments on commit 2077e32

Please sign in to comment.