Browse Source

Fix return from reload

andrewheberle 7 years ago
parent
commit
08d29a8342
1 changed files with 2 additions and 2 deletions
  1. 2 2
      deploy/haproxy.sh

+ 2 - 2
deploy/haproxy.sh

@@ -257,10 +257,10 @@ haproxy_deploy() {
   eval "${_reload}"
   eval "${_reload}"
   _ret=$?
   _ret=$?
   if [ "${_ret}" != "0" ]; then
   if [ "${_ret}" != "0" ]; then
-    _info "Reload successful"
-  else
     _err "Error code ${_ret} during reload"
     _err "Error code ${_ret} during reload"
     return ${_ret}
     return ${_ret}
+  else
+    _info "Reload successful"
   fi
   fi
 
 
   return 0
   return 0