From 043e9106525610e637639f8a4a18a9a98942e59a Mon Sep 17 00:00:00 2001 From: Nathaniel Case Date: Fri, 13 May 2016 16:26:07 -0400 Subject: [PATCH] Check for jxmlease when using netconf on JUNOS. (#15835) --- lib/ansible/module_utils/junos.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/module_utils/junos.py b/lib/ansible/module_utils/junos.py index 61d5ca73ce..bf1a2f955d 100644 --- a/lib/ansible/module_utils/junos.py +++ b/lib/ansible/module_utils/junos.py @@ -350,6 +350,8 @@ def get_module(**kwargs): module.fail_json(msg='paramiko is required but does not appear to be installed') 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') + 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() return module