Revision 96b39bcc scripts/gnt-instance
b/scripts/gnt-instance | ||
---|---|---|
1208 | 1208 |
|
1209 | 1209 |
""" |
1210 | 1210 |
if not (opts.nics or opts.disks or opts.disk_template or |
1211 |
opts.hvparams or opts.beparams): |
|
1211 |
opts.hvparams or opts.beparams or opts.os):
|
|
1212 | 1212 |
ToStderr("Please give at least one of the parameters.") |
1213 | 1213 |
return 1 |
1214 | 1214 |
|
... | ... | |
1261 | 1261 |
remote_node=opts.node, |
1262 | 1262 |
hvparams=opts.hvparams, |
1263 | 1263 |
beparams=opts.beparams, |
1264 |
os_name=opts.os, |
|
1265 |
force_variant=opts.force_variant, |
|
1264 | 1266 |
force=opts.force) |
1265 | 1267 |
|
1266 | 1268 |
# even if here we process the result, we allow submit only |
... | ... | |
1417 | 1419 |
'modify': ( |
1418 | 1420 |
SetInstanceParams, ARGS_ONE_INSTANCE, |
1419 | 1421 |
[BACKEND_OPT, DISK_OPT, FORCE_OPT, HVOPTS_OPT, NET_OPT, SUBMIT_OPT, |
1420 |
DISK_TEMPLATE_OPT, SINGLE_NODE_OPT], |
|
1422 |
DISK_TEMPLATE_OPT, SINGLE_NODE_OPT, OS_OPT, FORCE_VARIANT_OPT],
|
|
1421 | 1423 |
"<instance>", "Alters the parameters of an instance"), |
1422 | 1424 |
'shutdown': ( |
1423 | 1425 |
GenericManyOps("shutdown", _ShutdownInstance), [ArgInstance()], |
Also available in: Unified diff