mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 04:12:37 +09:00
Feature #4320: Do not allow vm.updateconf in stopped state
This commit is contained in:
1 parent
964371f7a2
commit
229ca4be3f
1 file changed
+2
-4
@@ -4860,7 +4860,6 @@ int VirtualMachine::updateconf(VirtualMachineTemplate& tmpl, string &err)
|
||||
{
|
||||
case PENDING:
|
||||
case HOLD:
|
||||
case STOPPED:
|
||||
case POWEROFF:
|
||||
case UNDEPLOYED:
|
||||
case CLONING:
|
||||
@@ -4872,8 +4871,6 @@ int VirtualMachine::updateconf(VirtualMachineTemplate& tmpl, string &err)
|
||||
{
|
||||
case LCM_INIT:
|
||||
case PROLOG:
|
||||
case SAVE_STOP:
|
||||
case EPILOG_STOP:
|
||||
case EPILOG:
|
||||
case SHUTDOWN:
|
||||
case CLEANUP_RESUBMIT:
|
||||
@@ -4888,7 +4885,6 @@ int VirtualMachine::updateconf(VirtualMachineTemplate& tmpl, string &err)
|
||||
case BOOT_FAILURE:
|
||||
case PROLOG_FAILURE:
|
||||
case EPILOG_FAILURE:
|
||||
case EPILOG_STOP_FAILURE:
|
||||
case EPILOG_UNDEPLOY_FAILURE:
|
||||
case PROLOG_MIGRATE_POWEROFF:
|
||||
case PROLOG_MIGRATE_POWEROFF_FAILURE:
|
||||
@@ -4907,6 +4903,8 @@ int VirtualMachine::updateconf(VirtualMachineTemplate& tmpl, string &err)
|
||||
case INIT:
|
||||
case DONE:
|
||||
case SUSPENDED:
|
||||
case STOPPED:
|
||||
|
||||
err = "configuration cannot be update in state " + state_str();
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user