X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FGetNodeFlavour.py;h=7363aba6cdb9b48cf773c8b6df0b0c65a57a2712;hb=46512bf1e4a749b348a7f1c286bd0a60180d3a43;hp=79943f9b8cdcb874ac9f46441dc806607efe961f;hpb=be94936242ed3b00ff8091d860118b0e55421116;p=plcapi.git diff --git a/PLC/Methods/GetNodeFlavour.py b/PLC/Methods/GetNodeFlavour.py index 79943f9..7363aba 100644 --- a/PLC/Methods/GetNodeFlavour.py +++ b/PLC/Methods/GetNodeFlavour.py @@ -29,7 +29,7 @@ class GetNodeFlavour(Method): ] returns = { - 'nodefamily' : Parameter (str, "the node-family this node should be based upon"), + 'nodefamily' : Parameter (str, "the nodefamily this node should be based upon"), 'extensions' : [ Parameter (str, "extensions to add to the base install") ], 'plain' : Parameter (bool, "use plain bootstrapfs image if set (for tests)" ) , } @@ -45,12 +45,11 @@ class GetNodeFlavour(Method): pldistro = GetNodePldistro (self.api).call(auth, node_id) if not pldistro: pldistro = self.api.config.PLC_FLAVOUR_NODE_PLDISTRO - ###fcdistro = GetNodeFcdistro (self.api).call(auth, node_id) - ###if not fcdistro: fcdistro = self.api.config.PLC_FLAVOUR_NODE_FCDISTRO + fcdistro = GetNodeFcdistro (self.api).call(auth, node_id) + if not fcdistro: fcdistro = self.api.config.PLC_FLAVOUR_NODE_FCDISTRO # xxx would make sense to check the corresponding bootstrapfs is available - ###return "%s-%s-%s"%(pldistro,fcdistro,arch) - return "%s-%s"%(pldistro,arch) + return "%s-%s-%s"%(pldistro,fcdistro,arch) def extensions (self, auth, node_id, arch): try: