Revision b4ec07f8 lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
2592 | 2592 |
assert self.instance is not None, \ |
2593 | 2593 |
"Cannot retrieve locked instance %s" % self.op.instance_name |
2594 | 2594 |
_CheckNodeOnline(self, self.instance.primary_node) |
2595 |
if not hasattr(self.op, "ignore_size"): |
|
2596 |
self.op.ignore_size = False |
|
2595 | 2597 |
|
2596 | 2598 |
def Exec(self, feedback_fn): |
2597 | 2599 |
"""Activate the disks. |
2598 | 2600 |
|
2599 | 2601 |
""" |
2600 |
disks_ok, disks_info = _AssembleInstanceDisks(self, self.instance) |
|
2602 |
disks_ok, disks_info = \ |
|
2603 |
_AssembleInstanceDisks(self, self.instance, |
|
2604 |
ignore_size=self.op.ignore_size) |
|
2601 | 2605 |
if not disks_ok: |
2602 | 2606 |
raise errors.OpExecError("Cannot activate block devices") |
2603 | 2607 |
|
Also available in: Unified diff