From 67c2a230fb8c259eb1a39a62697923500efb7687 Mon Sep 17 00:00:00 2001 From: Ken Cochrane Date: Tue, 6 Jun 2017 15:24:49 -0400 Subject: [PATCH] Fixed AWS push command, name wasn't set correctly Signed-off-by: Ken Cochrane --- src/cmd/linuxkit/push_aws.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cmd/linuxkit/push_aws.go b/src/cmd/linuxkit/push_aws.go index 732d83328..f443f6573 100644 --- a/src/cmd/linuxkit/push_aws.go +++ b/src/cmd/linuxkit/push_aws.go @@ -138,6 +138,8 @@ func pushAWS(args []string) { if snapshotID == nil { log.Fatalf("SnapshotID unavailable after import completed") + } else { + log.Debugf("SnapshotID: %s", snapshotID) } regParams := &ec2.RegisterImageInput{ @@ -160,7 +162,7 @@ func pushAWS(args []string) { log.Debugf("RegisterImage:\n%v", regParams) regResp, err := compute.RegisterImage(regParams) if err != nil { - log.Fatalf("Error registering the image: %s", err) + log.Fatalf("Error registering the image: %s; %s", name, err) } log.Infof("Created AMI: %s", *regResp.ImageId) }