1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #17510 from privateip/iosxr

clean up iosxr shared module
This commit is contained in:
Peter Sprygada 2016-09-12 09:42:11 -04:00 committed by GitHub
commit ebe2400af8

View file

@ -59,7 +59,7 @@ class Cli(CliBase):
### Config methods ###
def configure(self, commands, **kwargs):
def configure(self, commands):
cmds = ['configure terminal']
if commands[-1] == 'end':
commands.pop()
@ -68,7 +68,7 @@ class Cli(CliBase):
responses = self.execute(cmds)
return responses[1:]
def get_config(self, flags=None, **kwargs):
def get_config(self, flags=None):
cmd = 'show running-config'
if flags:
if isinstance(flags, list):
@ -106,6 +106,7 @@ class Cli(CliBase):
self.execute(['abort'])
diff = None
raise
return diff[0]
Cli = register_transport('cli', default=True)(Cli)