mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 04:40:22 -07:00
Replace invalid_params with ValueError (#44545)
This commit is contained in:
parent
d4e15d40e8
commit
6c05e03fea
5 changed files with 6 additions and 6 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue