[WORKER] Check for zero-length monitor path

Change-Id: Ia799ec2bab281528c9547b2e3219f80ff4be2231
This commit is contained in:
David Shrewsbury
2013-08-21 09:20:28 -04:00
parent b8cac9ae88
commit ba4e8e79f6

View File

@@ -296,7 +296,7 @@ class HAProxyDriver(LoadBalancerDriver):
attempts = 2
if timeout is None:
timeout = delay
if path is None:
if (path is None) or (len(path) == 0):
path = '/'
if path[0] != '/':