mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Fix side-effect of flags being passed to ios get_config again (#37084)
This commit is contained in:
@@ -57,7 +57,9 @@ class Cliconf(CliconfBase):
|
||||
if source not in ('running', 'startup'):
|
||||
return self.invalid_params("fetching configuration from %s is not supported" % source)
|
||||
if source == 'running':
|
||||
cmd = 'show running-config all'
|
||||
cmd = 'show running-config '
|
||||
if not flags:
|
||||
flags = ['all']
|
||||
else:
|
||||
cmd = 'show startup-config'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user