mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 20:02:38 +09:00
feature #132: Use again deploy_id from drv_message for actions.
This commit is contained in:
1 parent
1f3b50ba35
commit
4f242f4df9
1 file changed
+8
-6
@@ -450,20 +450,22 @@ class ExecDriver < VirtualMachineDriver
|
||||
# POLL action, gets information of a VM
|
||||
#
|
||||
def poll(id, drv_message)
|
||||
data = decode(drv_message)
|
||||
host = data.elements['HOST'].text
|
||||
data = decode(drv_message)
|
||||
host = data.elements['HOST'].text
|
||||
deploy_id = data.elements['DEPLOY_ID'].text
|
||||
|
||||
do_action("#{id} #{host}", id, host, ACTION[:poll])
|
||||
do_action("#{deploy_id} #{host}", id, host, ACTION[:poll])
|
||||
end
|
||||
|
||||
#
|
||||
# REBOOT action, reboots a running VM
|
||||
#
|
||||
def reboot(id, drv_message)
|
||||
data = decode(drv_message)
|
||||
host = data.elements['HOST'].text
|
||||
data = decode(drv_message)
|
||||
host = data.elements['HOST'].text
|
||||
deploy_id = data.elements['DEPLOY_ID'].text
|
||||
|
||||
do_action("#{id} #{host}", id, host, ACTION[:reboot])
|
||||
do_action("#{deploy_id} #{host}", id, host, ACTION[:reboot])
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user