diff --git a/plugins/module_utils/ndi.py b/plugins/module_utils/ndi.py index 2e1327a..c42f725 100644 --- a/plugins/module_utils/ndi.py +++ b/plugins/module_utils/ndi.py @@ -310,6 +310,7 @@ def is_json(self, myjson): def is_xml(self, myxml): try: from lxml import etree + etree.parse(myxml) except ImportError: self.nd.fail_json(msg="Cannot use lxml etree because lxml module is not available")