Revision c9c41373 lib/client/gnt_instance.py
b/lib/client/gnt_instance.py | ||
---|---|---|
611 | 611 |
|
612 | 612 |
""" |
613 | 613 |
instance_name = args[0] |
614 |
op = opcodes.OpInstanceDeactivateDisks(instance_name=instance_name) |
|
614 |
op = opcodes.OpInstanceDeactivateDisks(instance_name=instance_name, |
|
615 |
force=opts.force) |
|
615 | 616 |
SubmitOrSend(op, opts) |
616 | 617 |
return 0 |
617 | 618 |
|
... | ... | |
1465 | 1466 |
"<instance>", "Activate an instance's disks"), |
1466 | 1467 |
'deactivate-disks': ( |
1467 | 1468 |
DeactivateDisks, ARGS_ONE_INSTANCE, |
1468 |
[SUBMIT_OPT, DRY_RUN_OPT, PRIORITY_OPT], |
|
1469 |
"<instance>", "Deactivate an instance's disks"), |
|
1469 |
[FORCE_OPT, SUBMIT_OPT, DRY_RUN_OPT, PRIORITY_OPT],
|
|
1470 |
"[-f] <instance>", "Deactivate an instance's disks"),
|
|
1470 | 1471 |
'recreate-disks': ( |
1471 | 1472 |
RecreateDisks, ARGS_ONE_INSTANCE, |
1472 | 1473 |
[SUBMIT_OPT, DISKIDX_OPT, DRY_RUN_OPT, PRIORITY_OPT], |
Also available in: Unified diff