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:
Ganesh Nalawade 2017-06-02 09:04:57 +05:30 committed by GitHub
parent 4847613725
commit 85219dfdf3
4 changed files with 73 additions and 10 deletions

View file

@ -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)