lib/sfn/command_module/stack.rb in sfn-3.0.6 vs lib/sfn/command_module/stack.rb in sfn-3.0.8

- old
+ new

@@ -21,10 +21,10 @@ # @return [Miasma::Models::Orchestration::Stack] def apply_stacks!(stack) remote_stacks = [config[:apply_stack]].flatten.compact remote_stacks.each do |stack_name| stack_info = stack_name.split('__') - stack_info.shift(nil) if stack_info.size == 1 + stack_info.unshift(nil) if stack_info.size == 1 stack_location, stack_name = stack_info remote_stack = provider_for(stack_location).stack(stack_name) if(remote_stack) apply_nested_stacks!(remote_stack, stack) mappings = generate_custom_apply_mappings(remote_stack)