diff --git a/heat/engine/resources/openstack/neutron/lbaas/l7rule.py b/heat/engine/resources/openstack/neutron/lbaas/l7rule.py index 827975c70e..28d0052e3d 100644 --- a/heat/engine/resources/openstack/neutron/lbaas/l7rule.py +++ b/heat/engine/resources/openstack/neutron/lbaas/l7rule.py @@ -144,7 +144,7 @@ class L7Rule(neutron.NeutronResource): def handle_create(self): rule_args = dict((k, v) for k, v in self.properties.items() - if k is not self.L7POLICY) + if k != self.L7POLICY) return rule_args def check_create_complete(self, rule_args): diff --git a/heat/engine/stack.py b/heat/engine/stack.py index 65367097e3..f203166b64 100644 --- a/heat/engine/stack.py +++ b/heat/engine/stack.py @@ -1338,7 +1338,7 @@ class Stack(collections.Mapping): self.reset_dependencies() self._resources = None - if action is not self.CREATE: + if action != self.CREATE: self.updated_time = oslo_timeutils.utcnow() if new_stack is not None: