this should use tags vs nodegroups, but for now we do a quick fix, as it causes an...
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 26 May 2008 08:29:48 +0000 (08:29 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 26 May 2008 08:29:48 +0000 (08:29 +0000)
PLC/Methods/GetBootMedium.py

index e05f34b..7449e4f 100644 (file)
@@ -228,7 +228,7 @@ class GetBootMedium(Method):
             return (pldistro,arch)
 
         known_archs = [ 'i386', 'x86_64' ]
-        nodegroupnames = [ ng['name'] for ng in NodeGroups (self.api, node['nodegroup_ids'],['name'])]
+        nodegroupnames = [ ng['groupname'] for ng in NodeGroups (self.api, node['nodegroup_ids'],['groupname'])]
         # (1) if groupname == arch, nodefamily becomes pldistro-groupname
         # (2) else if groupname looks like pldistro-arch, it is taken as a nodefamily
         # (3) otherwise groupname is taken as an extension