1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-07 17:17:41 +03:00

M #- : Explicit FAILURE for send_monitor

This commit is contained in:
Ruben S. Montero 2020-05-28 17:44:09 +02:00
parent b0f3c28ae3
commit d27a819856
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -1056,8 +1056,10 @@ function send_to_monitor {
msg_oid="$3"
msg_payload="$4"
if [ "$msg_result" = "0" ]; then
msg_result=SUCCESS
if [ "$msg_result" = "0" -o "$msg_result" = "SUCCESS" ]; then
msg_result="SUCCESS"
else
msg_result="FAILURE"
fi
# Read monitord config
@ -1085,4 +1087,4 @@ function send_to_monitor {
echo "$msg_type $msg_result $msg_oid $payload_b64" |
nc -u -w1 $mon_address $mon_port
}
}