Revision 6605411d lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
4254 | 4254 |
""" |
4255 | 4255 |
HPATH = "disk-grow" |
4256 | 4256 |
HTYPE = constants.HTYPE_INSTANCE |
4257 |
_OP_REQP = ["instance_name", "disk", "amount"] |
|
4257 |
_OP_REQP = ["instance_name", "disk", "amount", "wait_for_sync"]
|
|
4258 | 4258 |
REQ_BGL = False |
4259 | 4259 |
|
4260 | 4260 |
def ExpandNames(self): |
... | ... | |
4337 | 4337 |
(node, result[1])) |
4338 | 4338 |
disk.RecordGrow(self.op.amount) |
4339 | 4339 |
self.cfg.Update(instance) |
4340 |
return |
|
4340 |
if self.op.wait_for_sync: |
|
4341 |
disk_abort = not _WaitForSync(self.cfg, instance, self.proc) |
|
4342 |
if disk_abort: |
|
4343 |
logger.Error("Warning: disk sync-ing has not returned a good status.\n" |
|
4344 |
" Please check the instance.") |
|
4341 | 4345 |
|
4342 | 4346 |
|
4343 | 4347 |
class LUQueryInstanceData(NoHooksLU): |
Also available in: Unified diff