diff --git a/security_monkey/auditors/gcp/gce/firewall.py b/security_monkey/auditors/gcp/gce/firewall.py index fe0b49b4d..5246f0530 100644 --- a/security_monkey/auditors/gcp/gce/firewall.py +++ b/security_monkey/auditors/gcp/gce/firewall.py @@ -47,6 +47,9 @@ def _port_range_exists(self, allowed_list, error_cat='ALLOWED'): Check to see if a port range exists in the allowed field. """ errors = [] + if allowed_list == None: + allowed_list = [] + for allowed in allowed_list: ports = allowed.get('ports', None) if ports: