Skip to content

Commit f22e901

Browse files
author
jasmingacic
committed
Updated create device function with parameter hardware_reservation_id
1 parent fa5e3d9 commit f22e901

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
@@ -120,6 +120,7 @@ def create_device(
120120
termination_time=None,
121121
user_ssh_keys=[],
122122
userdata="",
123+
hardware_reservation_id=""
123124
):
124125

125126
params = {
@@ -138,6 +139,8 @@ def create_device(
138139
"userdata": userdata,
139140
}
140141

142+
if hardware_reservation_id != "":
143+
params["hardware_reservation_id"] = hardware_reservation_id
141144
if ipxe_script_url != "":
142145
params["always_pxe"] = always_pxe
143146
params["ipxe_script_url"] = ipxe_script_url

0 commit comments

Comments
 (0)