Skip to content

Commit

Permalink
Handle '@' in username when grabbing compliance profiles
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Reedy <kreedy@chef.io>
  • Loading branch information
kevinreedy committed Sep 26, 2017
1 parent 4857b38 commit cbd1b55
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion files/default/vendor/chef-server/fetcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ def self.resolve(target)

return nil if uri.nil?

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

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

0 comments on commit cbd1b55

Please sign in to comment.