Skip to content

Commit

Permalink
Handling SQL IP address issue (#1825)
Browse files Browse the repository at this point in the history
* Handling SQL IP address issue

* reverting one change

* Improving this fix based on wiktor's feedback

* formatting
  • Loading branch information
aurelienlegrand authored Oct 30, 2023
1 parent 5ada65a commit 68dea55
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def _handle_sql_instances(resource, data):
'self_link': _self_link(data['selfLink']),
'ipAddresses': [
i['ipAddress']
for i in data.get('ipAddresses')
for i in data.get('ipAddresses', [])
if i['type'] == 'PRIVATE'
],
'region': data['region'],
Expand Down

0 comments on commit 68dea55

Please sign in to comment.