Revision 57de31c0 lib/client/gnt_instance.py
b/lib/client/gnt_instance.py | ||
---|---|---|
1248 | 1248 |
|
1249 | 1249 |
""" |
1250 | 1250 |
if not (opts.nics or opts.disks or opts.disk_template or |
1251 |
opts.hvparams or opts.beparams or opts.os or opts.osparams): |
|
1251 |
opts.hvparams or opts.beparams or opts.os or opts.osparams or |
|
1252 |
opts.offline_inst or opts.online_inst): |
|
1252 | 1253 |
ToStderr("Please give at least one of the parameters.") |
1253 | 1254 |
return 1 |
1254 | 1255 |
|
... | ... | |
1305 | 1306 |
osparams=opts.osparams, |
1306 | 1307 |
force_variant=opts.force_variant, |
1307 | 1308 |
force=opts.force, |
1308 |
wait_for_sync=opts.wait_for_sync) |
|
1309 |
wait_for_sync=opts.wait_for_sync, |
|
1310 |
offline_inst=opts.offline_inst, |
|
1311 |
online_inst=opts.online_inst) |
|
1309 | 1312 |
|
1310 | 1313 |
# even if here we process the result, we allow submit only |
1311 | 1314 |
result = SubmitOrSend(op, opts) |
... | ... | |
1487 | 1490 |
SetInstanceParams, ARGS_ONE_INSTANCE, |
1488 | 1491 |
[BACKEND_OPT, DISK_OPT, FORCE_OPT, HVOPTS_OPT, NET_OPT, SUBMIT_OPT, |
1489 | 1492 |
DISK_TEMPLATE_OPT, SINGLE_NODE_OPT, OS_OPT, FORCE_VARIANT_OPT, |
1490 |
OSPARAMS_OPT, DRY_RUN_OPT, PRIORITY_OPT, NWSYNC_OPT], |
|
1493 |
OSPARAMS_OPT, DRY_RUN_OPT, PRIORITY_OPT, NWSYNC_OPT, OFFLINE_INST_OPT, |
|
1494 |
ONLINE_INST_OPT], |
|
1491 | 1495 |
"<instance>", "Alters the parameters of an instance"), |
1492 | 1496 |
"shutdown": ( |
1493 | 1497 |
GenericManyOps("shutdown", _ShutdownInstance), [ArgInstance()], |
Also available in: Unified diff