mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-27 04:41:26 -07:00
Update junos cliconf plugin (#43643)
* Update junos cliconf plugin Fixes #39056 Refactor junos cliconf plugin api and other minor changes * Fix CI issue * Fix CI failure
This commit is contained in:
parent
2aaa1694ab
commit
35adc12c38
6 changed files with 146 additions and 28 deletions
|
@ -39,7 +39,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