Skip to content

Commit

Permalink
Merge pull request #57 from TheAntColony/update_create_device
Browse files Browse the repository at this point in the history
Update create device with hardware_reservation_id optional parameter
  • Loading branch information
jasmingacic authored Sep 17, 2019
2 parents 9e681d8 + f22e901 commit c2af27a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packet/Manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ def create_device(
termination_time=None,
user_ssh_keys=[],
userdata="",
hardware_reservation_id=""
):

params = {
Expand All @@ -138,6 +139,8 @@ def create_device(
"userdata": userdata,
}

if hardware_reservation_id != "":
params["hardware_reservation_id"] = hardware_reservation_id
if ipxe_script_url != "":
params["always_pxe"] = always_pxe
params["ipxe_script_url"] = ipxe_script_url
Expand Down

0 comments on commit c2af27a

Please sign in to comment.