Module: check_mk
Branch: master
Commit: ccbd1ec74d0efbe47425a8158e11b80f1f4bfbcb
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ccbd1ec74d0efb…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Apr 10 11:33:39 2017 +0200
4596 FIX agent_innovaphone: Fixed import error of lxml (which is not shipped with
Check_MK)
Change-Id: I64ca6c7f341ee7e2696a03f773ecab81eb2a0a57
---
.werks/4596 | 11 +++++++++++
agents/special/agent_innovaphone | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/4596 b/.werks/4596
new file mode 100644
index 0000000..a1e41b6
--- /dev/null
+++ b/.werks/4596
@@ -0,0 +1,11 @@
+Title: agent_innovaphone: Fixed import error of lxml (which is not shipped with
Check_MK)
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1491816800
+
+
diff --git a/agents/special/agent_innovaphone b/agents/special/agent_innovaphone
index e925962..dbbffb5 100755
--- a/agents/special/agent_innovaphone
+++ b/agents/special/agent_innovaphone
@@ -24,7 +24,7 @@
# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301 USA.
-from lxml import etree
+import xml.etree.ElementTree as etree
import sys
from urllib2 import urlopen
import urllib2, base64