Revision 2ee88aeb
b/lib/cmdlib.py | ||
---|---|---|
5985 | 5985 |
# checking the new params on the primary/secondary nodes |
5986 | 5986 |
|
5987 | 5987 |
instance = self.instance = self.cfg.GetInstanceInfo(self.op.instance_name) |
5988 |
cluster = self.cluster = self.cfg.GetClusterInfo() |
|
5988 | 5989 |
assert self.instance is not None, \ |
5989 | 5990 |
"Cannot retrieve locked instance %s" % self.op.instance_name |
5990 | 5991 |
pnode = instance.primary_node |
... | ... | |
6001 | 6002 |
pass |
6002 | 6003 |
else: |
6003 | 6004 |
i_hvdict[key] = val |
6004 |
cluster = self.cfg.GetClusterInfo() |
|
6005 | 6005 |
utils.ForceDictType(i_hvdict, constants.HVS_PARAMETER_TYPES) |
6006 | 6006 |
hv_new = objects.FillDict(cluster.hvparams[instance.hypervisor], |
6007 | 6007 |
i_hvdict) |
... | ... | |
6025 | 6025 |
pass |
6026 | 6026 |
else: |
6027 | 6027 |
i_bedict[key] = val |
6028 |
cluster = self.cfg.GetClusterInfo() |
|
6029 | 6028 |
utils.ForceDictType(i_bedict, constants.BES_PARAMETER_TYPES) |
6030 | 6029 |
be_new = objects.FillDict(cluster.beparams[constants.PP_DEFAULT], |
6031 | 6030 |
i_bedict) |
Also available in: Unified diff