We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb0d63e commit 5894da4Copy full SHA for 5894da4
lib/cloud_controller/check_stacks.rb
@@ -22,10 +22,8 @@ def validate_stack(deprecated_stack)
22
deprecated_stack_in_config = (configured_stacks.find { |stack| stack['name'] == deprecated_stack }).present?
23
return if deprecated_stack_in_config
24
25
- deprecated_stack_in_db = false
26
- @db.fetch('SELECT 1 FROM stacks WHERE name LIKE ? ', deprecated_stack) do |_row|
27
- deprecated_stack_in_db = true
28
- end
+ deprecated_stack_in_db = true if @db.fetch('SELECT 1 FROM stacks WHERE name LIKE ? ', deprecated_stack).empty?
+
29
raise "rake task 'stack_check' failed, stack '#{deprecated_stack}' not supported" if deprecated_stack_in_db
30
end
31
0 commit comments