Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

Commit cdb67f2

Browse files
authored
Merge pull request #64 from obynio/add-storage-to-device
Add storage feature to create_device
2 parents ffa1048 + d437107 commit cdb67f2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packet/Manager.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ def create_device(
136136
user_ssh_keys=[],
137137
userdata="",
138138
hardware_reservation_id="",
139+
storage={},
139140
):
140141

141142
params = {
@@ -156,6 +157,8 @@ def create_device(
156157

157158
if hardware_reservation_id != "":
158159
params["hardware_reservation_id"] = hardware_reservation_id
160+
if storage:
161+
params["storage"] = storage
159162
if ipxe_script_url != "":
160163
params["always_pxe"] = always_pxe
161164
params["ipxe_script_url"] = ipxe_script_url

0 commit comments

Comments
 (0)