lib/rundock/builder/operation_builder.rb in rundock-1.1.4 vs lib/rundock/builder/operation_builder.rb in rundock-1.1.5
- old
+ new
@@ -56,9 +56,11 @@
def build_task(tasks, backend, node_attribute)
node = Node.new(node_attribute.nodename, backend)
scen = Scenario.new
+ node_attribute.define_attr(:parrent_task_args, node_attribute.task_args) if node_attribute.respond_to?(:task_args)
+
tasks.each do |k, v|
ope = build_operations(k, Array(v), node_attribute, nil, true)
node.add_operation(ope) if ope
end