diff options
authorSaravanakumar Arumugam <>2015-09-23 12:21:40 +0530
committerVenky Shankar <>2015-12-03 02:24:31 -0800
commite0d9e617e3bddeb0f8746cf5bcab75b05b7eb679 (patch)
parentd84242276b2f8ee7151c7784992dffb651816ccf (diff)
geo-rep: geo-rep to handle CAPS based Hostname
Problem: geo-replication session creation fails when Hostname is having CAPS in it. Issue is with the regex pattern which handles only small lettered Hostname. Fix: Fix the regex pattern to handle CAPS based hostname as well. Change-Id: I5c99c102e9706acc2b1fab1e6bf158e68beed373 BUG: 1287960 Signed-off-by: Saravanakumar Arumugam <> Reviewed-on: Tested-by: NetBSD Build System <> Tested-by: Gluster Build System <> Reviewed-by: Milind Changire <> Reviewed-by: Aravinda VK <> Reviewed-by: Vijay Bellur <> (cherry picked from commit f6142e97c6219d2c1c482a414690020ed1275bdb) Reviewed-on: Reviewed-by: Venky Shankar <>
1 files changed, 1 insertions, 1 deletions
diff --git a/geo-replication/syncdaemon/ b/geo-replication/syncdaemon/
index 606e149a7a1..0573acce3e7 100644
--- a/geo-replication/syncdaemon/
+++ b/geo-replication/syncdaemon/
@@ -42,7 +42,7 @@ from gsyncdstatus import GeorepStatus
UrlRX = re.compile('\A(\w+)://([^ *?[]*)\Z')
-HostRX = re.compile('[a-z\d](?:[a-z\d.-]*[a-z\d])?', re.I)
+HostRX = re.compile('[a-zA-Z\d](?:[a-zA-Z\d.-]*[a-zA-Z\d])?', re.I)
UserRX = re.compile("[\w!\#$%&'*+-\/=?^_`{|}~]+")