5.0
[nodemanager.git] / sm.py
diff --git a/sm.py b/sm.py
index 8fab86e..9ba2c38 100644 (file)
--- a/sm.py
+++ b/sm.py
@@ -91,7 +91,7 @@ def GetSlivers(data, fullupdate=True):
 
         # convert attributes field to a proper dict
         attr_dict = {}
-        for attr in rec.pop('attributes'): attr_dict[attr['name']] = attr['value']
+        for attr in rec.pop('attributes'): attr_dict[attr['tagname']] = attr['value']
 
         # squash keys
         keys = rec.pop('keys')