Skip to content

Commit

Permalink
simplify profile url code (#284)
Browse files Browse the repository at this point in the history
As contributed #280

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
  • Loading branch information
arlimus authored and adamleff committed Sep 27, 2017
1 parent 8ccfccb commit 0847b31
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions files/default/vendor/chef-server/fetcher.rb
Expand Up @@ -30,11 +30,8 @@ def self.resolve(target)

return nil if uri.nil?

if uri.user
profile = uri.user + '@' + uri.host + uri.path
else
profile = uri.host + uri.path
end
profile = uri.host + uri.path
profile = uri.user + '@' + profile if uri.user

config = {
'insecure' => true,
Expand Down

0 comments on commit 0847b31

Please sign in to comment.