Fix side-effect of flags being passed to ios get_config again (#37084)

pull/37039/merge
Nathaniel Case 7 years ago committed by GitHub
parent 23f15e6ff6
commit f0dc0b28d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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'

Loading…
Cancel
Save