Replace invalid_params with ValueError (#44545)

This commit is contained in:
Lindsay Hill 2018-08-23 06:49:08 -07:00 committed by Ricardo Carrillo Cruz
commit 6c05e03fea
5 changed files with 6 additions and 6 deletions

View file

@ -60,7 +60,7 @@ class Cliconf(CliconfBase):
def get_config(self, source='running', flags=None):
if source not in ('running', 'startup'):
return self.invalid_params("fetching configuration from %s is not supported" % source)
raise ValueError("fetching configuration from %s is not supported" % source)
if source == 'running':
cmd = 'show running-config'
else: