Revision 6a1e009c lib/client/gnt_instance.py
b/lib/client/gnt_instance.py | ||
---|---|---|
1326 | 1326 |
op = opcodes.OpInstanceSetParams(instance_name=args[0], |
1327 | 1327 |
nics=nics, |
1328 | 1328 |
disks=disks, |
1329 |
hotplug=opts.hotplug, |
|
1329 | 1330 |
disk_template=opts.disk_template, |
1330 | 1331 |
remote_node=opts.node, |
1331 | 1332 |
hvparams=opts.hvparams, |
... | ... | |
1347 | 1348 |
ToStdout("Modified instance %s", args[0]) |
1348 | 1349 |
for param, data in result: |
1349 | 1350 |
ToStdout(" - %-5s -> %s", param, data) |
1350 |
ToStdout("Please don't forget that most parameters take effect" |
|
1351 |
" only at the next (re)start of the instance initiated by" |
|
1352 |
" ganeti; restarting from within the instance will" |
|
1353 |
" not be enough.") |
|
1351 |
if not opts.hotplug: |
|
1352 |
ToStdout("Please don't forget that most parameters take effect" |
|
1353 |
" only at the next (re)start of the instance initiated by" |
|
1354 |
" ganeti; restarting from within the instance will" |
|
1355 |
" not be enough.") |
|
1354 | 1356 |
return 0 |
1355 | 1357 |
|
1356 | 1358 |
|
... | ... | |
1528 | 1530 |
DISK_TEMPLATE_OPT, SINGLE_NODE_OPT, OS_OPT, FORCE_VARIANT_OPT, |
1529 | 1531 |
OSPARAMS_OPT, DRY_RUN_OPT, PRIORITY_OPT, NWSYNC_OPT, OFFLINE_INST_OPT, |
1530 | 1532 |
ONLINE_INST_OPT, IGNORE_IPOLICY_OPT, RUNTIME_MEM_OPT, |
1531 |
NOCONFLICTSCHECK_OPT], |
|
1533 |
NOCONFLICTSCHECK_OPT, HOTPLUG_OPT],
|
|
1532 | 1534 |
"<instance>", "Alters the parameters of an instance"), |
1533 | 1535 |
"shutdown": ( |
1534 | 1536 |
GenericManyOps("shutdown", _ShutdownInstance), [ArgInstance()], |
Also available in: Unified diff