Commit 71ab96a1 authored by Gaetan SIMO's avatar Gaetan SIMO
Browse files

[Rakefile] some updates

parent 52e05487
...@@ -69,15 +69,15 @@ namespace :deadnodes do ...@@ -69,15 +69,15 @@ namespace :deadnodes do
state = status["hard"].downcase state = status["hard"].downcase
if comment_ok?(comment) if comment_ok?(comment)
if state == "dead" if state == "dead"
@logger.error "Node '#{uid}' of state '#{state}' should not have comment '#{comment.inspect}'" if @tofix @logger.error "Node '#{uid}' of state '#{state}' should not have comment '#{comment}'" if @tofix
else else
# nothing, good state # nothing, good state
end end
else else
if state == "dead" if state == "dead"
@logger.info "Node '#{uid}' is dead because '#{comment.inspect}'" if @reasons @logger.info "Node '#{uid}' is dead because '#{comment}'" if @reasons
else else
@logger.error "Node '#{uid}' should have the not-dead-comment 'OK', since its state is '#{state}'. Instead, it has comment '#{comment.inspect}'." if @tofix @logger.error "Node '#{uid}' should have the not-dead-comment 'OK', since its state is '#{state}'. Instead, it has comment '#{comment}'." if @tofix
end end
end end
end end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment