From 007854f85edc9c186f331e2ce13f72e6cb38338e Mon Sep 17 00:00:00 2001 From: Rolf Neugebauer Date: Mon, 8 Jan 2018 16:29:30 +0000 Subject: [PATCH] cmd/packet: Fix API changes in the new version of the go bindings Signed-off-by: Rolf Neugebauer --- src/cmd/linuxkit/run_packet.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/linuxkit/run_packet.go b/src/cmd/linuxkit/run_packet.go index 9e2e4cbf5..2c022c881 100644 --- a/src/cmd/linuxkit/run_packet.go +++ b/src/cmd/linuxkit/run_packet.go @@ -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,