1
0
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:
Tino Vázquez 2010-10-04 19:27:55 +02:00
parent ca900d28e4
commit c1e52597ae
2 changed files with 16 additions and 1 deletions

View File

@ -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

View File

@ -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);