commit 1e0ec7b21500d70a6020d89630056fe67aa6e8f0
Author: Radek Pazdera <rpazdera(a)redhat.com>
Date: Thu Mar 14 13:13:56 2013 +0100
NetTestParse: Fixing wrong node for exceptions
This patch fixes a copy-paste error of XmlProcessingErrors in
NetTestParser. These exceptions were referencing xml_dom instead of
node.
Signed-off-by: Radek Pazdera <rpazdera(a)redhat.com>
lnst/Controller/NetTestParse.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/lnst/Controller/NetTestParse.py b/lnst/Controller/NetTestParse.py
index 6f7d901..caa15a0 100644
--- a/lnst/Controller/NetTestParse.py
+++ b/lnst/Controller/NetTestParse.py
@@ -172,7 +172,7 @@ class MachineParse(RecipeParser):
try:
self._trigger_event("machine_ready", {"machine_id": self._id})
except Exception as exc:
- logging.error(XmlProcessingError(str(exc), xml_dom))
+ logging.error(XmlProcessingError(str(exc), node))
raise
class ParamsParse(RecipeParser):
@@ -330,7 +330,7 @@ class SlaveMachineParse(RecipeParser):
self._trigger_event("netdevice_ready",
{"machine_id": self._machine_id, "dev_id": phys_id})
except Exception as exc:
- logging.error(XmlProcessingError(str(exc), xml_dom))
+ logging.error(XmlProcessingError(str(exc), node))
raise
class NetConfigParse(RecipeParser):
@@ -387,7 +387,7 @@ class NetConfigParse(RecipeParser):
except Exception as exc:
msg = "Unable to configure interface %s on machine %s [%s]." % \
(dev_id, self._machine_id, str(exc))
- logging.error(XmlProcessingError(str(msg), xml_dom))
+ logging.error(XmlProcessingError(str(msg), node))
raise
def _process_phys_id_attr(self, node, dev):