From 5442230546f299949319ab0172ce0fd44144f14a Mon Sep 17 00:00:00 2001 From: Yolanda Robla Date: Fri, 8 Nov 2013 23:03:32 +0800 Subject: [PATCH] Remove extra chars in launchpad bug links Add a new commentlink section in gerrit.config that parses launchpad bug links pattern and removes any trailing char after the bug number, to prevent including dots, question marks or any other trailing char to be included in the link Closes-Bug: 1222217 Change-Id: I402b75cea39cda01829bee6b1762e9abe54d85d4 --- modules/openstack_project/manifests/gerrit.pp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/openstack_project/manifests/gerrit.pp b/modules/openstack_project/manifests/gerrit.pp index 4dc5a52597..251dcb17a1 100644 --- a/modules/openstack_project/manifests/gerrit.pp +++ b/modules/openstack_project/manifests/gerrit.pp @@ -147,6 +147,11 @@ class openstack_project::gerrit ( match => '
  • ([^ ]+) ([^<]+) : ([^ ]+)([^<]*)
  • ', html => '
  • $1 $3$4
  • ', }, + { + name => 'launchpadbug', + match => '[^<]+', + html => '$1' + } ], war => $war, contactstore => $contactstore,