Actually pass on network_data when building configdrive

Change-Id: I75cfd10e1daf4590d064df531be57fe06363ccc5
This commit is contained in:
Erik Olof Gunnar Andersson 2019-04-16 20:21:16 -07:00 committed by Dmitry Tantsur
parent e8e99af4d3
commit d8db601f21
2 changed files with 7 additions and 1 deletions

View File

@ -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)

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fixes ``openstack.baremetal.configdrive.build`` to actually handle the
``network_data`` argument.