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:
parent
da63aaadd4
commit
e23cf14f33
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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?
|
||||
|
Loading…
x
Reference in New Issue
Block a user