mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-12 08:58:17 +03:00
This fixes #28.
onevm delete now works for all machines except those in ACTIVE state. git-svn-id: http://svn.opennebula.org/trunk@68 3034c82b-c49b-4eb3-8279-a7acafdc01c0
This commit is contained in:
parent
9fd188581d
commit
c7367143ac
@ -473,7 +473,8 @@ int DispatchManager::finalize(
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (vm->get_state() == VirtualMachine::FAILED )
|
||||
if (vm->get_state() != VirtualMachine::ACTIVE &&
|
||||
vm->get_state() != VirtualMachine::DONE )
|
||||
{
|
||||
oss << "Finalizing VM " << vid;
|
||||
Nebula::log("DiM",Log::DEBUG,oss);
|
||||
|
Loading…
x
Reference in New Issue
Block a user