Revision 085e0d9f lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
5377 | 5377 |
if self.op.ndparams: |
5378 | 5378 |
utils.ForceDictType(self.op.ndparams, constants.NDS_PARAMETER_TYPES) |
5379 | 5379 |
|
5380 |
if self.op.hv_state: |
|
5381 |
self.new_hv_state = _MergeAndVerifyHvState(self.op.hv_state, None) |
|
5382 |
|
|
5383 |
if self.op.disk_state: |
|
5384 |
self.new_disk_state = _MergeAndVerifyDiskState(self.op.disk_state, None) |
|
5385 |
|
|
5380 | 5386 |
def Exec(self, feedback_fn): |
5381 | 5387 |
"""Adds the new node to the cluster. |
5382 | 5388 |
|
... | ... | |
5415 | 5421 |
else: |
5416 | 5422 |
new_node.ndparams = {} |
5417 | 5423 |
|
5424 |
if self.op.hv_state: |
|
5425 |
new_node.hv_state_static = self.new_hv_state |
|
5426 |
|
|
5427 |
if self.op.disk_state: |
|
5428 |
new_node.disk_state_static = self.new_disk_state |
|
5429 |
|
|
5418 | 5430 |
# check connectivity |
5419 | 5431 |
result = self.rpc.call_version([node])[node] |
5420 | 5432 |
result.Raise("Can't get version information from node %s" % node) |
Also available in: Unified diff