mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
roll up of updates to vyos shared module
* cleans up method signature * removes save_config method in favor of super class
This commit is contained in:
parent
f5cff2ced5
commit
75f1573ed5
1 changed files with 2 additions and 4 deletions
|
@ -96,15 +96,13 @@ class Cli(CliBase):
|
|||
|
||||
return diff
|
||||
|
||||
def get_config(self, output='config'):
|
||||
if output not in ['config', 'set']:
|
||||
def get_config(self, output='text'):
|
||||
if output not in ['text', 'set']:
|
||||
raise ValueError('invalid output format specified')
|
||||
if output == 'set':
|
||||
return self.execute(['show configuration commands'])[0]
|
||||
else:
|
||||
return self.execute(['show configuration'])[0]
|
||||
|
||||
def save_config(self):
|
||||
raise NotImplementedError
|
||||
|
||||
Cli = register_transport('cli', default=True)(Cli)
|
||||
|
|
Loading…
Reference in a new issue