From 98264148e1041d08d80effdc9e7574dc8cf1b93f Mon Sep 17 00:00:00 2001 From: Jack Danger Canty Date: Wed, 31 May 2017 15:11:42 -0700 Subject: [PATCH] ELB connection draining timeout defaults to 300 seconds --- moto/elb/responses.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moto/elb/responses.py b/moto/elb/responses.py index ed8d6d03a..2bc76385f 100644 --- a/moto/elb/responses.py +++ b/moto/elb/responses.py @@ -159,7 +159,7 @@ class ELBResponse(BaseResponse): if connection_draining: attribute = ConnectionDrainingAttribute() attribute.enabled = connection_draining["enabled"] == "true" - attribute.timeout = connection_draining["timeout"] + attribute.timeout = connection_draining.get("timeout") self.elb_backend.set_connection_draining_attribute( load_balancer_name, attribute)