commit fbfaed107b451f40b077997f9dc5f8f7dcda1c60
Author: Ondrej Lichtner <olichtne(a)redhat.com>
Date: Fri Oct 18 13:57:30 2013 +0200
XmlTemplates: import MachineError
Template functions are catching this exception, however it was never
imported which caused the lnst-ctl to crash when a template function
would fail.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
lnst/Controller/XmlTemplates.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/lnst/Controller/XmlTemplates.py b/lnst/Controller/XmlTemplates.py
index b73b30d..1a65c8b 100644
--- a/lnst/Controller/XmlTemplates.py
+++ b/lnst/Controller/XmlTemplates.py
@@ -24,6 +24,7 @@ rpazdera(a)redhat.com (Radek Pazdera)
import re
from lxml import etree
from lnst.Controller.XmlProcessing import XmlTemplateString
+from lnst.Controller.Machine import MachineError
class XmlTemplateError(Exception):
pass
Show replies by date