Skip to content

Commit

Permalink
Merge "set nameservers to default empty value in network config v2 pa…
Browse files Browse the repository at this point in the history
…rser"
  • Loading branch information
Zuul authored and openstack-gerrit committed Oct 9, 2024
2 parents 8f43e77 + feb6968 commit aeeca0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudbaseinit/metadata/services/nocloudservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def _parse_addresses(self, item, link_name):
gateway=gateway)
routes.append(route)

nameservers = item.get("nameservers")
nameservers = item.get("nameservers", {})
nameserver_addresses = nameservers.get("addresses", []) \
if nameservers else []
searches = nameservers.get("search", [])
Expand Down

0 comments on commit aeeca0a

Please sign in to comment.