[PATCH] Fix small typo in dev_name function

Jan Tluka jtluka at redhat.com
Mon Aug 6 16:31:27 UTC 2012


---
 Common/XmlTemplates.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Common/XmlTemplates.py b/Common/XmlTemplates.py
index d79efe5..a3be062 100644
--- a/Common/XmlTemplates.py
+++ b/Common/XmlTemplates.py
@@ -274,13 +274,13 @@ class XmlTemplates:
             msg = "First parameter of function devname() is invalid: "\
                     "Machine %s does not exist." % m_id
             raise XmlTemplateError(msg)
-        machines = recipe["machines"][m_id]
+        machine = recipe["machines"][m_id]
 
         if if_id not in machine['netconfig']:
             msg = "Second parameter of function devname() is invalid: "\
                     "Interface %s does not exist." % if_id
             raise XmlTemplateError(msg)
-        dev_name = machines['netconfig'][if_id]['name']
+        dev_name = machine['netconfig'][if_id]['name']
 
         return dev_name
 
-- 
1.7.6.5



More information about the LNST-developers mailing list