lib/rundock/operation/task.rb in rundock-0.2.2 vs lib/rundock/operation/task.rb in rundock-0.2.3
- old
+ new
@@ -1,16 +1,16 @@
module Rundock
module Operation
class Task < Base
def run(backend, attributes = {})
@instruction.each do |i|
- unless attributes[:task].key?(i.to_sym)
+ unless attributes[:task_info].key?(i.to_sym)
Logger.warn("task not found and ignored: #{i}")
next
end
scenario = Rundock::Builder::ScenarioBuilder.new(nil, nil).build_task(
- attributes[:task][i.to_sym], backend, attributes)
+ attributes[:task_info][i.to_sym], backend, Rundock::Attribute::NodeAttribute.new(attributes))
scenario.run
end
end
end