mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -07:00
Update cliconf get_config api (#43472)
* Change `filter` parameter to `flag` to be in sync with original naming convention
This commit is contained in:
parent
c8fcbdef71
commit
857200fa7f
8 changed files with 15 additions and 15 deletions
|
@ -75,7 +75,7 @@ class Cliconf(CliconfBase):
|
|||
return resp
|
||||
|
||||
@enable_mode
|
||||
def get_config(self, source='running', format='text', filter=None):
|
||||
def get_config(self, source='running', format='text', flag=None):
|
||||
options_values = self.get_option_values()
|
||||
if format not in options_values['format']:
|
||||
raise ValueError("'format' value %s is invalid. Valid values are %s" % (format, ','.join(options_values['format'])))
|
||||
|
@ -88,7 +88,7 @@ class Cliconf(CliconfBase):
|
|||
if format and format is not 'text':
|
||||
cmd += '| %s ' % format
|
||||
|
||||
cmd += ' '.join(to_list(filter))
|
||||
cmd += ' '.join(to_list(flag))
|
||||
cmd = cmd.strip()
|
||||
return self.send_command(cmd)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue