bin/check-riak-ringready.rb in sensu-plugins-riak-0.0.3 vs bin/check-riak-ringready.rb in sensu-plugins-riak-0.0.4
- old
+ new
@@ -33,10 +33,10 @@
end
def run
exit_status, message = execute 'sudo -n -k riak-admin ringready'
# #YELLOW
- if exit_status.success? # rubocop:disable IfUnlessModifier
+ if exit_status.success?
ok message if /^TRUE/ =~ message
end
critical message
end
end