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

Commit 60431f7

Browse files
author
Yohann Leon
committed
Add storage feature to create_device
1 parent c38c1a8 commit 60431f7

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
@@ -121,6 +121,7 @@ def create_device(
121121
user_ssh_keys=[],
122122
userdata="",
123123
hardware_reservation_id="",
124+
storage={},
124125
):
125126

126127
params = {
@@ -141,6 +142,8 @@ def create_device(
141142

142143
if hardware_reservation_id != "":
143144
params["hardware_reservation_id"] = hardware_reservation_id
145+
if storage != "":
146+
params["storage"] = storage
144147
if ipxe_script_url != "":
145148
params["always_pxe"] = always_pxe
146149
params["ipxe_script_url"] = ipxe_script_url

0 commit comments

Comments
 (0)