Fixed AWS push command, name wasn't set correctly

Signed-off-by: Ken Cochrane <kencochrane@gmail.com>
This commit is contained in:
Ken Cochrane 2017-06-06 15:24:49 -04:00
parent b460a718cc
commit 67c2a230fb

View File

@ -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)
}