bin/check-cassandra-schema.rb in sensu-plugins-cassandra-0.0.3 vs bin/check-cassandra-schema.rb in sensu-plugins-cassandra-0.0.4

- old
+ new

@@ -53,10 +53,10 @@ def nodetool_cmd(cmd) out = `nodetool -h #{config[:hostname]} -p #{config[:port]} #{cmd} 2>&1` [out, $CHILD_STATUS] end - def run # rubocop:disable all + def run out, rc = nodetool_cmd('describecluster') if rc != 0 critical(out) end