Revision 6605411d scripts/gnt-instance
b/scripts/gnt-instance | ||
---|---|---|
443 | 443 |
instance = args[0] |
444 | 444 |
disk = args[1] |
445 | 445 |
amount = utils.ParseUnit(args[2]) |
446 |
op = opcodes.OpGrowDisk(instance_name=instance, disk=disk, amount=amount) |
|
446 |
op = opcodes.OpGrowDisk(instance_name=instance, disk=disk, amount=amount, |
|
447 |
wait_for_sync=opts.wait_for_sync) |
|
447 | 448 |
SubmitOrSend(op, opts) |
448 | 449 |
return 0 |
449 | 450 |
|
... | ... | |
1069 | 1070 |
'deactivate-disks': (DeactivateDisks, ARGS_ONE, [DEBUG_OPT, SUBMIT_OPT], |
1070 | 1071 |
"<instance>", |
1071 | 1072 |
"Deactivate an instance's disks"), |
1072 |
'grow-disk': (GrowDisk, ARGS_FIXED(3), [DEBUG_OPT, SUBMIT_OPT], |
|
1073 |
'grow-disk': (GrowDisk, ARGS_FIXED(3), |
|
1074 |
[DEBUG_OPT, SUBMIT_OPT, |
|
1075 |
make_option("--no-wait-for-sync", |
|
1076 |
dest="wait_for_sync", default=True, |
|
1077 |
action="store_false", |
|
1078 |
help="Don't wait for sync (DANGEROUS!)"), |
|
1079 |
], |
|
1073 | 1080 |
"<instance> <disk> <size>", "Grow an instance's disk"), |
1074 | 1081 |
'list-tags': (ListTags, ARGS_ONE, [DEBUG_OPT], |
1075 | 1082 |
"<instance_name>", "List the tags of the given instance"), |
Also available in: Unified diff