Skip to content

Commit

Permalink
Merge pull request #50 from gianarb/fix/customdata-device-creation
Browse files Browse the repository at this point in the history
device creation does not support custom data
  • Loading branch information
mmlb authored May 29, 2020
2 parents d9b36f6 + d34c80c commit d068168
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/create_device.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ packet device create --hostname [hostname] --plan [plan] --facility [facility_co
request.UserData = userdata
}

if customdata != "" {
request.CustomData = customdata
}

if len(tags) > 0 {
request.Tags = tags
}
Expand Down

0 comments on commit d068168

Please sign in to comment.