mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-01 13:59:09 -07:00
fix cliconf get_config method to match base signature (#36682)
This commit fixes up the get_config method to match the minimum method signature as defined by the base class. Without this patch, the get_config method calls will fail in some cirumstances.
This commit is contained in:
parent
eb162bdf7f
commit
fb6a8c0133
14 changed files with 16 additions and 15 deletions
|
@ -56,7 +56,7 @@ class Cliconf(CliconfBase):
|
|||
|
||||
return device_info
|
||||
|
||||
def get_config(self, source='running', filter=None):
|
||||
def get_config(self, source='running', format='text', filter=None):
|
||||
lookup = {'running': 'running-config'}
|
||||
if source not in lookup:
|
||||
return self.invalid_params("fetching configuration from %s is not supported" % source)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue