mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
feature #863: get xml values in all vmm actions
This commit is contained in:
parent
800ee164cf
commit
053efd8854
@ -111,49 +111,49 @@ class ExecDriver < VirtualMachineDriver
|
||||
|
||||
def shutdown(id, drv_message)
|
||||
data = decode(drv_message)
|
||||
host = data['HOST']
|
||||
deploy_id = data['DEPLOY_ID']
|
||||
host = data.elements['HOST'].text
|
||||
deploy_id = data.elements['DEPLOY_ID'].text
|
||||
|
||||
do_action("#{deploy_id} #{host}", id, host, :shutdown)
|
||||
end
|
||||
|
||||
def cancel(id, drv_message)
|
||||
data = decode(drv_message)
|
||||
host = data['HOST']
|
||||
deploy_id = data['DEPLOY_ID']
|
||||
host = data.elements['HOST'].text
|
||||
deploy_id = data.elements['DEPLOY_ID'].text
|
||||
|
||||
do_action("#{deploy_id} #{host}", id, host, :cancel)
|
||||
end
|
||||
|
||||
def save(id, drv_message)
|
||||
data = decode(drv_message)
|
||||
host = data['HOST']
|
||||
deploy_id = data['DEPLOY_ID']
|
||||
file = data['CHECKPOINT_FILE']
|
||||
host = data.elements['HOST'].text
|
||||
deploy_id = data.elements['DEPLOY_ID'].text
|
||||
file = data.elements['CHECKPOINT_FILE'].text
|
||||
|
||||
do_action("#{deploy_id} #{file} #{host}", id, host, :save)
|
||||
end
|
||||
|
||||
def restore(id, drv_message)
|
||||
data = decode(drv_message)
|
||||
host = data['HOST']
|
||||
file = data['CHECKPOINT_FILE']
|
||||
host = data.elements['HOST'].text
|
||||
file = data.elements['CHECKPOINT_FILE'].text
|
||||
|
||||
do_action("#{file} #{host}", id, host, :restore)
|
||||
end
|
||||
|
||||
def migrate(id, drv_message)
|
||||
data = decode(drv_message)
|
||||
host = data['HOST']
|
||||
deploy_id = data['DEPLOY_ID']
|
||||
host = data.elements['HOST'].text
|
||||
deploy_id = data.elements['DEPLOY_ID'].text
|
||||
|
||||
do_action("#{deploy_id} #{dest_host} #{host}", id, host, :migrate)
|
||||
end
|
||||
|
||||
def poll(id, drv_message)
|
||||
data = decode(drv_message)
|
||||
host = data['HOST']
|
||||
deploy_id = data['DEPLOY_ID']
|
||||
host = data.elements['HOST'].text
|
||||
deploy_id = data.elements['DEPLOY_ID'].text
|
||||
|
||||
do_action("#{deploy_id} #{host}", id, host, :poll)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user