mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-22 22:11:44 -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
|
@ -58,7 +58,7 @@ class Cliconf(CliconfBase):
|
|||
|
||||
def get_config(self, source='running', flags=None):
|
||||
if source not in 'running':
|
||||
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'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue