From c03b263a67998fef4a6508beaf629bfe27f9d05f Mon Sep 17 00:00:00 2001 From: LIU Yulong Date: Sun, 22 Sep 2019 17:37:28 +0800 Subject: [PATCH] Trivial: fix firewall_refresh_needed return value type Commit 614b95c83759f6476841f405b08806601a3c89a0 changed the return value type of funcion firewall_refresh_needed unexpectedly. This one fixes it. Change-Id: I92dbdb02742af55534e16b87be551bae101262a1 --- neutron/agent/securitygroups_rpc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron/agent/securitygroups_rpc.py b/neutron/agent/securitygroups_rpc.py index 3f6376caea9..bf83f518516 100644 --- a/neutron/agent/securitygroups_rpc.py +++ b/neutron/agent/securitygroups_rpc.py @@ -227,7 +227,7 @@ class SecurityGroupAgentRpc(object): self._apply_port_filter(device_ids, update_filter=True) def firewall_refresh_needed(self): - return self.devices_to_refilter + return bool(self.devices_to_refilter) def setup_port_filters(self, new_devices, updated_devices): """Configure port filters for devices.