Skip to content

Commit

Permalink
The specific firewall rule had no allow, instead only a deny was adde…
Browse files Browse the repository at this point in the history
…d to the firewall rule
  • Loading branch information
jshsp committed Aug 16, 2018
1 parent 98f3e9d commit d04c912
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions security_monkey/auditors/gcp/gce/firewall.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

1 comment on commit d04c912

@exenin
Copy link
Owner

@exenin exenin commented on d04c912 Aug 16, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

relates to Netflix#1038

Please sign in to comment.