bin/controller in robot-controller-2.0.beta2 vs bin/controller in robot-controller-2.0.0

- old
+ new

@@ -88,10 +88,14 @@ statuses.each_pair do |robot, status| case status[:state] when :up puts "OK: #{robot} is up (#{status[:running]} running)" if verbose when :not_enabled - puts "OK: #{robot} is not enabled (#{status[:running]} running)" if verbose + if status[:running] == 0 + puts "OK: #{robot} is not enabled (0 running)" if verbose + else + puts "ERROR: #{robot} is not enabled (but #{status[:running]} running)" + end when :down ok = false puts "ERROR: #{robot} is down (#{status[:running]} of #{running[robot]} running)" else ok = false