commit 05c4aa67645270cf106aec7b9c4c71243ec94340
Author: Ondrej Lichtner <olichtne(a)redhat.com>
Date: Tue Sep 9 15:59:28 2014 +0200
RecipeParser: fix tag reference in a vlan exception
The vlan variable is undefined, the iface_tag variable should be used
instead.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
lnst/Controller/RecipeParser.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lnst/Controller/RecipeParser.py b/lnst/Controller/RecipeParser.py
index c68fe54..3201719 100644
--- a/lnst/Controller/RecipeParser.py
+++ b/lnst/Controller/RecipeParser.py
@@ -163,7 +163,7 @@ class RecipeParser(XmlParser):
if slaves_tag is None or len(slaves_tag) != 1:
msg = "VLAN '%s' need exactly one slave definition."\
% iface["id"]
- raise RecipeError(msg, vlan)
+ raise RecipeError(msg, iface_tag)
iface["slaves"] = XmlCollection(slaves_tag)
Show replies by date