Skip to content

Commit

Permalink
fixed bug - hash returns "message" not "msg"
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhijith committed Jan 25, 2012
1 parent 8987630 commit 440ceac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/rabbitmq/rabbitmq-alive.rb
Expand Up @@ -51,11 +51,11 @@ def run
res = vhost_alive?

if res["status"] == "ok"
ok res["msg"]
ok res["message"]
elsif res["status"] == "critical"
critical res["msg"]
critical res["message"]
else
unknown res["msg"]
unknown res["message"]
end
end

Expand Down

0 comments on commit 440ceac

Please sign in to comment.