Revision 4167825b lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
545 | 545 |
ourselves in the post-run node list. |
546 | 546 |
|
547 | 547 |
""" |
548 |
env = { |
|
549 |
"CLUSTER": self.op.cluster_name, |
|
550 |
"MASTER": self.hostname.name, |
|
551 |
} |
|
552 |
return env, [], [self.hostname.name] |
|
548 |
return {}, [], [self.hostname.name] |
|
553 | 549 |
|
554 | 550 |
def CheckPrereq(self): |
555 | 551 |
"""Verify that the passed name is a valid one. |
... | ... | |
615 | 611 |
hostname = self.hostname |
616 | 612 |
|
617 | 613 |
# set up the simple store |
618 |
ss = ssconf.SimpleStore() |
|
614 |
self.sstore = ss = ssconf.SimpleStore()
|
|
619 | 615 |
ss.SetKey(ss.SS_HYPERVISOR, self.op.hypervisor_type) |
620 | 616 |
ss.SetKey(ss.SS_MASTER_NODE, hostname.name) |
621 | 617 |
ss.SetKey(ss.SS_MASTER_IP, clustername.ip) |
... | ... | |
643 | 639 |
_InitSSHSetup(hostname.name) |
644 | 640 |
|
645 | 641 |
# init of cluster config file |
646 |
cfgw = config.ConfigWriter() |
|
642 |
self.cfg = cfgw = config.ConfigWriter()
|
|
647 | 643 |
cfgw.InitConfig(hostname.name, hostname.ip, self.secondary_ip, |
648 | 644 |
sshkey, self.op.mac_prefix, |
649 | 645 |
self.op.vg_name, self.op.def_bridge) |
Also available in: Unified diff