ELB connection draining timeout defaults to 300 seconds

This commit is contained in:
Jack Danger Canty 2017-05-31 15:11:42 -07:00
parent d8a8f88dc6
commit 98264148e1

View File

@ -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)