Skip to content

Commit

Permalink
Merge pull request #4448 from ChrisBr/kiwi/autocomplete
Browse files Browse the repository at this point in the history
[frontend] Binary automplete returns now empty hash
  • Loading branch information
ChrisBr committed Feb 5, 2018
2 parents 11b3515 + fe792f0 commit d62317e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app/models/kiwi/image.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def self.binaries_available(project, use_project_repositories, repositories)
if use_project_repositories
Backend::Api::BuildResults::Binaries.available_in_project(project)
else
return [] if repositories.blank?
return {} if repositories.blank?
obs_repository_paths = repositories.select { |url| url.starts_with?('obs://') }.map { |url| url[6..-1] }
non_obs_repository_urls = repositories.reject { |url| url.starts_with?('obs://') }
Backend::Api::BuildResults::Binaries.available_in_repositories(project, non_obs_repository_urls, obs_repository_paths)
Expand Down

0 comments on commit d62317e

Please sign in to comment.