Permalink
Browse files

Low: ManageVE: do not log errors every time the resource is stopped

  • Loading branch information...
1 parent 971b64b commit ca987afd35226145f48fb31bef911aa3ed3b6015 @dmuhamedagic dmuhamedagic committed Apr 3, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 heartbeat/ManageVE
View
@@ -188,7 +188,10 @@ status_ve()
retcode=$?
if [[ $retcode != 0 ]]; then
- ocf_log err "vzctl status $VEID returned: $retcode"
+ # log error only if expected to find running
+ if [ "$__OCF_ACTION" = "monitor" ] && ! ocf_is_probe; then
+ ocf_log err "vzctl status $VEID returned: $retcode"
+ fi
exit $OCF_ERR_GENERIC
fi

0 comments on commit ca987af

Please sign in to comment.