mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-06 00:14:02 -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
|
@ -35,7 +35,7 @@ class Cliconf(CliconfBase):
|
|||
@enable_mode
|
||||
def get_config(self, source='running', flags=None, format=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 format:
|
||||
raise ValueError("'format' value %s is not supported for get_config" % format)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue