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

This commit is contained in:
Nathaniel Case 2018-03-06 13:55:36 -05:00 committed by GitHub
parent 23f15e6ff6
commit f0dc0b28d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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