From: Thierry Parmentelat Date: Thu, 7 Mar 2013 07:54:29 +0000 (+0100) Subject: do not save the virt tag from GetNodeFlavour in the node X-Git-Tag: plcapi-5.2-1~2 X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=commitdiff_plain;h=366a9cc3c0def815f9d95226c9c6790371ae84d0 do not save the virt tag from GetNodeFlavour in the node --- diff --git a/PLC/Methods/GetNodeFlavour.py b/PLC/Methods/GetNodeFlavour.py index f41b637..8e8381d 100644 --- a/PLC/Methods/GetNodeFlavour.py +++ b/PLC/Methods/GetNodeFlavour.py @@ -110,7 +110,9 @@ class GetNodeFlavour(Method): virt = GetNodeVirt (self.api,self.caller).call(auth, node_id) if not virt: virt = self.virt_from_virt_map (fcdistro) - SetNodeVirt (self.api, self.caller).call (auth, node_id, virt) + # do not save in node - if a node was e.g. f14 and it gets set to f16 + # we do not want to have to re-set virt + # SetNodeVirt (self.api, self.caller).call (auth, node_id, virt) # xxx could use some sanity checking, and could provide fallbacks return {