From a27f49323d4addd120f164cddaafe967b0d71f3d Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Mon, 26 May 2008 08:29:48 +0000 Subject: [PATCH 1/1] this should use tags vs nodegroups, but for now we do a quick fix, as it causes an exception at runtime --- PLC/Methods/GetBootMedium.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PLC/Methods/GetBootMedium.py b/PLC/Methods/GetBootMedium.py index e05f34b..7449e4f 100644 --- a/PLC/Methods/GetBootMedium.py +++ b/PLC/Methods/GetBootMedium.py @@ -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 -- 2.43.0