Browse Source

Actually pass on network_data when building configdrive

Change-Id: I75cfd10e1daf4590d064df531be57fe06363ccc5
Erik Olof Gunnar Andersson 5 days ago
parent
commit
d8db601f21

+ 2
- 1
openstack/baremetal/configdrive.py View File

@@ -71,7 +71,8 @@ def build(metadata, user_data=None, versions=None, network_data=None):
71 71
     :param dict network_data: Networking configuration.
72 72
     :return: configdrive contents as a base64-encoded string.
73 73
     """
74
-    with populate_directory(metadata, user_data, versions) as path:
74
+    with populate_directory(metadata, user_data, versions,
75
+                            network_data) as path:
75 76
         return pack(path)
76 77
 
77 78
 

+ 5
- 0
releasenotes/notes/network-data-bd94e4a499ba3e0d.yaml View File

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

Loading…
Cancel
Save