Skip to content

Commit 090ef65

Browse files
authored
Merge pull request #72 from grahamc/pass-customdata
Manager.create_device: add support for customdata
2 parents 5337114 + 3c57863 commit 090ef65

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packet/Manager.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ def create_device(
137137
userdata="",
138138
hardware_reservation_id="",
139139
storage={},
140+
customdata={},
140141
):
141142

142143
params = {
@@ -159,6 +160,8 @@ def create_device(
159160
params["hardware_reservation_id"] = hardware_reservation_id
160161
if storage:
161162
params["storage"] = storage
163+
if customdata:
164+
params["customdata"] = customdata
162165
if ipxe_script_url != "":
163166
params["always_pxe"] = always_pxe
164167
params["ipxe_script_url"] = ipxe_script_url

0 commit comments

Comments
 (0)