Skip to content

Commit

Permalink
fixed get application ports looking bad when multiple ip ranges for s…
Browse files Browse the repository at this point in the history
…ame port
  • Loading branch information
nahumtimerman committed May 6, 2019
1 parent 53fb98d commit ed72530
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,16 @@ def _convert_ip_ranges_to_string(self, ip_ranges):
if not isinstance(ip_ranges, list):
return None

result = ''
cidrs= []

for ip_range in ip_ranges:
if not isinstance(ip_range, dict):
continue
cidr = ip_range.get('CidrIp')
if cidr:
result = result.join('{}'.format(cidr))
cidrs.append(cidr)

result = ', '.join(cidrs)

return result

Expand Down

0 comments on commit ed72530

Please sign in to comment.