mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 19:01:26 -07:00
Cleanup openswitch
Also bump get_config in vyos, to pick up the addition of **kwargs Closes #17415
This commit is contained in:
parent
1e7e3aad0e
commit
fcd4be28ee
3 changed files with 7 additions and 5 deletions
|
@ -29,7 +29,7 @@
|
|||
import re
|
||||
|
||||
from ansible.module_utils.network import NetworkModule, NetworkError
|
||||
from ansible.module_utils.network import register_transport, to_list, get_exception
|
||||
from ansible.module_utils.network import register_transport, to_list
|
||||
from ansible.module_utils.shell import CliBase
|
||||
|
||||
|
||||
|
@ -96,7 +96,7 @@ class Cli(CliBase):
|
|||
|
||||
return diff
|
||||
|
||||
def get_config(self, output='text'):
|
||||
def get_config(self, output='text', **kwargs):
|
||||
if output not in ['text', 'set']:
|
||||
raise ValueError('invalid output format specified')
|
||||
if output == 'set':
|
||||
|
@ -104,5 +104,4 @@ class Cli(CliBase):
|
|||
else:
|
||||
return self.execute(['show configuration'])[0]
|
||||
|
||||
|
||||
Cli = register_transport('cli', default=True)(Cli)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue