From 8b4c94dd0e776c1da58463a2283c7d22e4bf8ab6 Mon Sep 17 00:00:00 2001 From: akinross Date: Mon, 16 Dec 2024 11:31:24 +0100 Subject: [PATCH] [ignore] black formatting --- plugins/module_utils/ndi.py | 1 + 1 file changed, 1 insertion(+) 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")