diff --git a/openstack/baremetal/configdrive.py b/openstack/baremetal/configdrive.py index b43d19b3c..13348fe42 100644 --- a/openstack/baremetal/configdrive.py +++ b/openstack/baremetal/configdrive.py @@ -71,7 +71,8 @@ def build(metadata, user_data=None, versions=None, network_data=None): :param dict network_data: Networking configuration. :return: configdrive contents as a base64-encoded string. """ - with populate_directory(metadata, user_data, versions) as path: + with populate_directory(metadata, user_data, versions, + network_data) as path: return pack(path) diff --git a/releasenotes/notes/network-data-bd94e4a499ba3e0d.yaml b/releasenotes/notes/network-data-bd94e4a499ba3e0d.yaml new file mode 100644 index 000000000..22e5bd706 --- /dev/null +++ b/releasenotes/notes/network-data-bd94e4a499ba3e0d.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Fixes ``openstack.baremetal.configdrive.build`` to actually handle the + ``network_data`` argument.