From e30d48231dafa3d73c2b6ea29d5ae434f10d7d0d Mon Sep 17 00:00:00 2001 From: Angus Salkeld Date: Mon, 27 Aug 2012 15:09:06 +1000 Subject: [PATCH] Fix the Timeout/Interval check in the LB. http://docs.amazonwebservices.com/ElasticLoadBalancing/latest/APIReference/API_HealthCheck.html Fixes: #198 Change-Id: I3ec3e5a946e32695f3f9b0930b922837ab80ea66 Signed-off-by: Angus Salkeld --- heat/engine/loadbalancer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/heat/engine/loadbalancer.py b/heat/engine/loadbalancer.py index fcc4405016..79cca3dbfd 100644 --- a/heat/engine/loadbalancer.py +++ b/heat/engine/loadbalancer.py @@ -306,7 +306,7 @@ class LoadBalancer(stack.Stack): health_chk = self.properties['HealthCheck'] if health_chk: - if float(health_chk['Interval']) >= float(health_chk['Timeout']): + if float(health_chk['Interval']) < float(health_chk['Timeout']): return {'Error': 'Interval must be larger than Timeout'}