mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 20:01:25 -07:00
Fix typo in cliconf get_config (#43553)
This commit is contained in:
parent
572a2187ab
commit
733e512f35
5 changed files with 11 additions and 11 deletions
|
@ -75,7 +75,7 @@ class Cliconf(CliconfBase):
|
|||
return resp
|
||||
|
||||
@enable_mode
|
||||
def get_config(self, source='running', format='text', flag=None):
|
||||
def get_config(self, source='running', format='text', flags=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(flag))
|
||||
cmd += ' '.join(to_list(flags))
|
||||
cmd = cmd.strip()
|
||||
return self.send_command(cmd)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue