1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-27 14:03:40 +03:00

bug #2273: Add missing POWEROFF state in RESUME "from" parameter

This commit is contained in:
Daniel Molina 2013-11-18 12:33:43 +01:00
parent d4572f66a0
commit abe5bf6ba7

View File

@ -68,7 +68,7 @@ class VirtualMachineOCCI < VirtualMachine
OCCI_ACTION = {
"STOPPED" => { :from => ["ACTIVE"], :action => :stop},
"SUSPENDED" => { :from => ["ACTIVE"], :action => :suspend},
"RESUME" => { :from => ["STOPPED", "SUSPENDED"], :action => :resume},
"RESUME" => { :from => ["STOPPED", "SUSPENDED", "POWEROFF"], :action => :resume},
"CANCEL" => { :from => ["ACTIVE"], :action => :cancel},
"REBOOT" => { :from => ["ACTIVE"], :action => :reboot},
"RESET" => { :from => ["ACTIVE"], :action => :reset},