lib/cfer.rb in cfer-0.6.2 vs lib/cfer.rb in cfer-0.7.0
- old
+ new
@@ -87,13 +87,12 @@
when 'Rollback'
rollback_opts = {
stack_name: stack_name
}
- rollback_opts[:role_arn] = options[:role_arn] if options[:role_arn]
-
case operation
when :created
+ rollback_opts[:role_arn] = options[:role_arn] if options[:role_arn]
cfn_stack.delete_stack rollback_opts
when :updated
cfn_stack.cancel_update_stack rollback_opts
end
retry