lib/sfn/command_module/stack.rb in sfn-0.4.4 vs lib/sfn/command_module/stack.rb in sfn-0.4.6
- old
+ new
@@ -108,10 +108,10 @@
# @return [Hash]
def populate_parameters!(stack, current_params={})
if(stack['Parameters'])
if(config.get(:parameter).is_a?(Array))
config[:parameter] = Smash[
- *config.get(:parameter).map(&:to_a)
+ *config.get(:parameter).map(&:to_a).flatten
]
end
if(config.get(:parameters))
config.set(:parameters,
config.get(:parameters).merge(config[:parameter])