mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 20:01:25 -07:00
Add support to fetch old style junos facts (#25250)
* Add support to fetch old style junos facts Fixes #25050 Add support to fetch old style facts supported in Ansible <= 2.2 To fetch old style facts value `gather_subset` value shoule be `all` and `junos-eznc` is required to be installed on control node as a prerequisite. * Remove unwanted import
This commit is contained in:
parent
4847613725
commit
85219dfdf3
4 changed files with 73 additions and 10 deletions
|
@ -191,3 +191,6 @@ def load_config(module, candidate, warnings, action='merge', commit=False, forma
|
|||
discard_changes(module)
|
||||
|
||||
return diff
|
||||
|
||||
def get_param(module, key):
|
||||
return module.params[key] or module.params['provider'].get(key)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue