Generate cgit links with '/' character instead of '%2F'

The generated cgit links in the Gerrit change screen contain "%2F" in URL
instead of "/" character.  Add the urlEncode setting to make Gerrit
generate links with "/" character instead.

Change-Id: I07d1b3175c039bba0d8b7392c756fa6a5b2e74e9
depends-on: I0ed9f2e872617d601120a5ab15b512e30aae51b5
This commit is contained in:
Khai Do 2015-10-16 12:04:50 -07:00
parent ccf494ea4b
commit 9c9eae01cd
2 changed files with 3 additions and 0 deletions
modules/openstack_project/manifests

@ -70,6 +70,7 @@ class openstack_project::gerrit (
$gitweb = true,
$cgit = false,
$web_repo_url = '',
$web_repo_url_encode = false,
$secondary_index = true,
$afs = false,
) {
@ -204,6 +205,7 @@ class openstack_project::gerrit (
gitweb => $gitweb,
cgit => $cgit,
web_repo_url => $web_repo_url,
web_repo_url_encode => $web_repo_url_encode,
testmode => $testmode,
secondary_index => $secondary_index,
require => Class[openstack_project::server],

@ -75,6 +75,7 @@ class openstack_project::review_dev (
gitweb => false,
cgit => true,
web_repo_url => 'https://git.openstack.org/cgit/',
web_repo_url_encode => false,
swift_username => $swift_username,
swift_password => $swift_password,
replication_force_update => true,