Skip to content

Commit fd3309c

Browse files
committed
Fix empty DNS list
Method osutils.set_static_network_config expects dnsnameservers as list. Use an empty list if the dnsnameservers is None. Change-Id: I3b567a941336b61f3a505306f738f14e8b3db04f
1 parent 39a73ea commit fd3309c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cloudbaseinit/plugins/common/networkconfig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def _process_network_details(self, network_details):
153153
nic.address,
154154
nic.netmask,
155155
nic.gateway,
156-
nic.dnsnameservers
156+
nic.dnsnameservers or []
157157
)
158158
reboot_required = reboot or reboot_required
159159
# Set v6 info too if available.

0 commit comments

Comments
 (0)