# the deployment tag, if set, wins
# xxx Thierry: this probably is wrong; we need fcdistro to be set anyway
# for generating the proper yum config....
# the deployment tag, if set, wins
# xxx Thierry: this probably is wrong; we need fcdistro to be set anyway
# for generating the proper yum config....
if not pldistro:
pldistro = self.api.config.PLC_FLAVOUR_NODE_PLDISTRO
SetNodePldistro(self.api).call(auth,node_id,pldistro)
if not pldistro:
pldistro = self.api.config.PLC_FLAVOUR_NODE_PLDISTRO
SetNodePldistro(self.api).call(auth,node_id,pldistro)
def extensions (self, auth, node_id, fcdistro, arch):
try:
def extensions (self, auth, node_id, fcdistro, arch):
try:
- return [ "%s-%s-%s"%(e,fcdistro,arch) for e in GetNodeExtensions(self.api).call(auth,node_id).split() ]
+ return [ "%s-%s-%s"%(e,fcdistro,arch) for e in GetNodeExtensions(self.api,self.caller).call(auth,node_id).split() ]
# if not set, use the global default and tag the node, in case the global default changes later on
if not arch:
arch = self.api.config.PLC_FLAVOUR_NODE_ARCH
SetNodeArch (self.api).call(auth,node_id,arch)
# if not set, use the global default and tag the node, in case the global default changes later on
if not arch:
arch = self.api.config.PLC_FLAVOUR_NODE_ARCH
SetNodeArch (self.api).call(auth,node_id,arch)
if not fcdistro:
fcdistro = self.api.config.PLC_FLAVOUR_NODE_FCDISTRO
SetNodeFcdistro (self.api).call (auth, node_id, fcdistro)
if not fcdistro:
fcdistro = self.api.config.PLC_FLAVOUR_NODE_FCDISTRO
SetNodeFcdistro (self.api).call (auth, node_id, fcdistro)