From eaa7e717a2aa704434723190f4ca0717888f5e03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20F=C3=BClling?= Date: Wed, 16 Mar 2016 14:02:22 +0100 Subject: [PATCH] Fixes #2039 Convert None to 0 when checking if ELB cookie expiration has changed --- lib/ansible/modules/cloud/amazon/ec2_elb_lb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/amazon/ec2_elb_lb.py b/lib/ansible/modules/cloud/amazon/ec2_elb_lb.py index c0fff623acc..a2601211b86 100644 --- a/lib/ansible/modules/cloud/amazon/ec2_elb_lb.py +++ b/lib/ansible/modules/cloud/amazon/ec2_elb_lb.py @@ -909,7 +909,7 @@ class ElbManager(object): def _set_stickiness_policy(self, elb_info, listeners_dict, policy, **policy_attrs): for p in getattr(elb_info.policies, policy_attrs['attr']): if str(p.__dict__['policy_name']) == str(policy[0]): - if str(p.__dict__[policy_attrs['dict_key']]) != str(policy_attrs['param_value']): + if str(p.__dict__[policy_attrs['dict_key']]) != str(policy_attrs['param_value'] or 0): self._set_listener_policy(listeners_dict) self._update_policy(policy_attrs['param_value'], policy_attrs['method'], policy_attrs['attr'], policy[0]) self.changed = True