mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-23 17:33:56 +03:00
Merge branch 'feature-1144'
This commit is contained in:
commit
3df4c6b65a
@ -333,6 +333,7 @@ DATASTORE_MAD = [
|
||||
# - CREATE, when the VM is created (onevm create)
|
||||
# - PROLOG, when the VM is in the prolog state
|
||||
# - RUNNING, after the VM is successfully booted
|
||||
# - UNKNOWN, when the VM is in the unknown state
|
||||
# - SHUTDOWN, after the VM is shutdown
|
||||
# - STOP, after the VM is stopped (including VM image transfers)
|
||||
# - DONE, after the VM is deleted or shutdown
|
||||
|
@ -180,6 +180,16 @@ VirtualMachinePool::VirtualMachinePool(
|
||||
|
||||
state_hook = true;
|
||||
}
|
||||
else if ( on == "UNKNOWN" )
|
||||
{
|
||||
VirtualMachineStateHook * hook;
|
||||
|
||||
hook = new VirtualMachineStateHook(name, cmd, arg, remote,
|
||||
VirtualMachine::UNKNOWN, VirtualMachine::ACTIVE);
|
||||
add_hook(hook);
|
||||
|
||||
state_hook = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
ostringstream oss;
|
||||
|
Loading…
Reference in New Issue
Block a user