mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-11 05:17:41 +03:00
Local_action definition
This commit is contained in:
parent
ca900d28e4
commit
c1e52597ae
@ -118,6 +118,21 @@ class VirtualMachineDriver < OpenNebulaDriver
|
||||
|
||||
send_message(ACTION[action],RESULT[result],id)
|
||||
end
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# Execute a command associated to an action and id on localhost
|
||||
# -------------------------------------------------------------------------
|
||||
def local_action(command, id, action)
|
||||
command_exe = LocalCommand.run(command)
|
||||
|
||||
if command_exe.code == 0
|
||||
result = :success
|
||||
else
|
||||
result = :failure
|
||||
end
|
||||
|
||||
send_message(ACTION[action],RESULT[result],id)
|
||||
end
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# Virtual Machine Manager Protocol Actions (generic implementation
|
||||
|
@ -333,7 +333,7 @@ int LibVirtDriver::deployment_description_vmware(
|
||||
file << "\t</devices>" << endl;
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Raw KVM attributes
|
||||
// Raw VMware attributes
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
num = vm->get_template_attribute("RAW",attrs);
|
||||
|
Loading…
Reference in New Issue
Block a user