lib/rundock/node.rb in rundock-0.2.0 vs lib/rundock/node.rb in rundock-0.2.2

- old
+ new

@@ -16,9 +16,13 @@ @operations << ope end def run Logger.debug("run name: #{@name}") + if @operations.blank? + Logger.warn("no operation running: #{@name}") + return + end @operations.each do |ope| Logger.debug("operation type: #{ope.class}") ope.run(@backend, ope.attributes) end end