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:
parent
b0f3c28ae3
commit
d27a819856
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user