cmd/packet: Fix API changes in the new version of the go bindings

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
Rolf Neugebauer 2018-01-08 16:29:30 +00:00
parent b272819540
commit 007854f85e

View File

@ -172,7 +172,7 @@ func runPacket(args []string) {
log.Debugf("%s\n", string(b))
req := packngo.DeviceUpdateRequest{
HostName: hostname,
Hostname: hostname,
UserData: userData,
Locked: dev.Locked,
Tags: dev.Tags,
@ -188,7 +188,7 @@ func runPacket(args []string) {
} else {
// Create a new device
req := packngo.DeviceCreateRequest{
HostName: hostname,
Hostname: hostname,
Plan: plan,
Facility: facility,
OS: osType,