Skip to content

Commit

Permalink
replace / by %2F in project stored on sub-sub-group
Browse files Browse the repository at this point in the history
url for project in sub sub group are not well formated.
replace / by %2F over all the urn
resolve issue abrader#39
  • Loading branch information
ricou84 authored Sep 21, 2017
1 parent 0b90825 commit da97c80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/provider/git_deploy_key/gitlab.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def get_project_id
raise(Puppet::Error, "gitlab_deploy_key::#{calling_method}: Must provide at least one of the following attributes: project_id or project_name")
end

project_name = resource[:project_name].strip.sub('/','%2F')
project_name = resource[:project_name].strip.gsub('/','%2F')

url = "#{gms_server}/api/v3/projects/#{project_name}"

Expand Down

0 comments on commit da97c80

Please sign in to comment.