Revision 6e04dc39 lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
8409 | 8409 |
errors.ECODE_INVAL) |
8410 | 8410 |
_CheckInstanceDown(self, instance, "cannot change disk template") |
8411 | 8411 |
if self.op.disk_template in constants.DTS_NET_MIRROR: |
8412 |
if self.op.remote_node == pnode: |
|
8413 |
raise errors.OpPrereqError("Given new secondary node %s is the same" |
|
8414 |
" as the primary node of the instance" % |
|
8415 |
self.op.remote_node, errors.ECODE_STATE) |
|
8412 | 8416 |
_CheckNodeOnline(self, self.op.remote_node) |
8413 | 8417 |
_CheckNodeNotDrained(self, self.op.remote_node) |
8414 | 8418 |
disks = [{"size": d.size} for d in instance.disks] |
Also available in: Unified diff