lib/toaster/chef/resource_inspector.rb in cloud-toaster-1.1.5 vs lib/toaster/chef/resource_inspector.rb in cloud-toaster-1.1.6
- old
+ new
@@ -43,10 +43,10 @@
quoted_string2 = "'[^\\]]+'"
resource_src.scan(/node((\[((#{symbol})|(#{numeric_index})|(#{quoted_string1})|(#{quoted_string2}))\][ \t]*)+)/).each do |param|
param = param[0].strip
param = MarkupUtil.convert_array_to_dot_notation(param)
if task_or_sourcecode.kind_of?(Task)
- param = TaskParameter.new(task_or_sourcecode, param)
+ param = TaskParameter.new(:task => task_or_sourcecode, :key => param)
else
param = TaskParameter.new(:key => param)
end
exists = result.find { |p| (p.kind_of?(TaskParameter) ? p.key : p) ==
(param.kind_of?(TaskParameter) ? param.key : param) }