lib/bora/cfn/stack.rb in bora-1.7.2 vs lib/bora/cfn/stack.rb in bora-1.7.3

- old
+ new

@@ -78,10 +78,12 @@ def create_change_set(change_set_name, options) change_set_options = { stack_name: @stack_name, change_set_name: change_set_name } - cloudformation.create_change_set(change_set_options.merge(options)) + invalid_create_change_set_options = %i[on_failure disable_rollback] + filtered_options = options.reject { |key| invalid_create_change_set_options.include?(key) } + cloudformation.create_change_set(change_set_options.merge(filtered_options)) loop do change_set = ChangeSet.new(cloudformation.describe_change_set(change_set_options)) return change_set if change_set.status_complete? sleep 5 end