mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-05 16:04:09 -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
|
@ -82,7 +82,7 @@ class Cliconf(CliconfBase):
|
|||
|
||||
lookup = {'running': 'running-config', 'startup': 'startup-config'}
|
||||
if source not in lookup:
|
||||
return self.invalid_params("fetching configuration from %s is not supported" % source)
|
||||
raise ValueError("fetching configuration from %s is not supported" % source)
|
||||
|
||||
cmd = 'show %s ' % lookup[source]
|
||||
if format and format is not 'text':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue