Revision 4c6e8e1a lib/client/gnt_instance.py
b/lib/client/gnt_instance.py | ||
---|---|---|
1314 | 1314 |
|
1315 | 1315 |
nics = _ConvertNicDiskModifications(opts.nics) |
1316 | 1316 |
for action, _, __ in nics: |
1317 |
if action == constants.DDM_MODIFY and opts.hotplug: |
|
1317 |
if action == constants.DDM_MODIFY and opts.hotplug and not opts.force:
|
|
1318 | 1318 |
usertext = ("You are about to hot-modify a NIC. This will be done" |
1319 | 1319 |
" by removing the exisiting and then adding a new one." |
1320 | 1320 |
" Network connection might be lost. Continue?") |
... | ... | |
1363 | 1363 |
ToStdout("Modified instance %s", args[0]) |
1364 | 1364 |
for param, data in result: |
1365 | 1365 |
ToStdout(" - %-5s -> %s", param, data) |
1366 |
if not opts.hotplug: |
|
1367 |
ToStdout("Please don't forget that most parameters take effect" |
|
1368 |
" only at the next (re)start of the instance initiated by" |
|
1369 |
" ganeti; restarting from within the instance will" |
|
1370 |
" not be enough.") |
|
1366 |
ToStdout("Please don't forget that most parameters take effect" |
|
1367 |
" only at the next (re)start of the instance initiated by" |
|
1368 |
" ganeti; restarting from within the instance will" |
|
1369 |
" not be enough.") |
|
1371 | 1370 |
return 0 |
1372 | 1371 |
|
1373 | 1372 |
|
Also available in: Unified diff