Skip to content

Commit

Permalink
Update config_manager.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
fmoehler authored Dec 18, 2023
1 parent 0613612 commit 21fd8e1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/bosh-director/lib/bosh/director/api/config_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ def create(type, name, config_yaml, team_id = nil)
def deploy_config_enabled?
deploy_config = find(type: 'deploy', limit: 999)

deploy_config.each do |config|
return true
end
false
return !deploy_config.empty?
end

def find(type: nil, name: nil, limit: 1)
Expand Down

0 comments on commit 21fd8e1

Please sign in to comment.