mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 23:21:22 -07:00
Check for jxmlease when using netconf on JUNOS. (#15835)
This commit is contained in:
parent
4f0be29d65
commit
043e910652
1 changed files with 2 additions and 0 deletions
|
@ -350,6 +350,8 @@ def get_module(**kwargs):
|
||||||
module.fail_json(msg='paramiko is required but does not appear to be installed')
|
module.fail_json(msg='paramiko is required but does not appear to be installed')
|
||||||
elif module.params['transport'] == 'netconf' and not HAS_PYEZ:
|
elif module.params['transport'] == 'netconf' and not HAS_PYEZ:
|
||||||
module.fail_json(msg='junos-eznc >= 1.2.2 is required but does not appear to be installed')
|
module.fail_json(msg='junos-eznc >= 1.2.2 is required but does not appear to be installed')
|
||||||
|
elif module.params['transport'] == 'netconf' and not HAS_JXMLEASE:
|
||||||
|
module.fail_json(msg='jxmlease is required but does not appear to be installed')
|
||||||
|
|
||||||
module.connect()
|
module.connect()
|
||||||
return module
|
return module
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue