lib/rundock/node.rb in rundock-0.4.8 vs lib/rundock/node.rb in rundock-0.4.10
- old
+ new
@@ -22,22 +22,22 @@
def run
Logger.formatter.onrec = true
Logger.debug("run node: #{@name}")
Logger.warn("no operation running: #{@name}") if @operations.blank?
- nodeinfo = nil
+ node_attributes = []
@operations.each do |ope|
Logger.debug("run operation: #{ope.class}")
- nodeinfo = ope.attributes[:nodeinfo] if nodeinfo.nil?
+ node_attributes << ope.attributes
ope.run(@backend, ope.attributes)
end
log_buffer = Logger.formatter.flush unless Logger.formatter.buffer.empty?
@hooks.each do |h|
Logger.debug("run hook: #{h.name}")
- h.hook(log_buffer, nodeinfo)
+ h.hook(node_attributes, log_buffer)
end
Logger.formatter.onrec = false
end
end