1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

Added error message parsing to im and vmm

(cherry picked from commit ca5c0f09f0a7ce68d8c32dfe85731d11751d43d4)
This commit is contained in:
Javi Fontan 2011-03-21 19:16:46 +01:00 committed by Ruben S. Montero
parent da63aaadd4
commit e23cf14f33
3 changed files with 4 additions and 3 deletions

View File

@ -68,7 +68,8 @@ class InformationManager < OpenNebulaDriver
send_message("MONITOR", RESULT[:success], number, monitor_exe.stdout)
else
send_message("MONITOR", RESULT[:failure], number,
"Could not monitor host #{host}.")
"Could not monitor host #{host}. " +
"#{monitor_exe.get_error_message}")
end
end

View File

@ -83,7 +83,7 @@ class InformationManager < OpenNebulaDriver
send_message("MONITOR", RESULT[:success], number, cmd.stdout)
else
send_message("MONITOR", RESULT[:failure], number,
"Could not monitor host #{host}.")
"Could not monitor host #{host}. #{cmd.get_error_message}")
end
end

View File

@ -121,7 +121,7 @@ class VirtualMachineDriver < OpenNebulaDriver
info = command_exe.stdout
else
result = :failure
info = command_exe.stderr
info = command_exe.get_error_message
end
info = "-" if info == nil || info.empty?