Kavenegar returns 200 (#5020)
<!-- Describe the change in summary section, including rationale and degin decisions. Include "Fixes #nnn" if you are fixing an existing issue. In "Component Name" section write which component is changed in this PR. This will help us review your PR quicker. If you have more information you want to add, write them in "Additional Information" section. This is usually used to help others understand your motivation behind this change. A step-by-step reproduction of the problem is helpful if there is no related issue. --> ##### Kavenegar returns 200 when the request has been successful. ##### Kavenegar Notification
SS Salehi committed
Dec 17, 2018 at 22:26 UTC
ba597661f84b5d1fc1e164a4c825752833237d02
1 file changed
+1
-1
health/notifications/alarm-notify.sh.in
+1
-1
@@ -1123,7 +1123,7 @@ send_kavenegar() {
1123
--data-urlencode "receptor=${user}" \
1124
--data-urlencode "message=${title} ${message}")
1125
1126
- if [ "${httpcode}" = "201" ]
1126
+ if [ "${httpcode}" = "200" ]
1127
then
1128
info "sent Kavenegar SMS for: ${host} ${chart}.${name} is ${status} to '${user}'"
1129
sent=$((sent + 1))