mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 17:26:28 +00:00
Merge pull request #1973 from kencochrane/fix_aws_name
Added more log statements to linuxkit push aws command
This commit is contained in:
commit
d31413c39c
@ -138,6 +138,8 @@ func pushAWS(args []string) {
|
|||||||
|
|
||||||
if snapshotID == nil {
|
if snapshotID == nil {
|
||||||
log.Fatalf("SnapshotID unavailable after import completed")
|
log.Fatalf("SnapshotID unavailable after import completed")
|
||||||
|
} else {
|
||||||
|
log.Debugf("SnapshotID: %s", snapshotID)
|
||||||
}
|
}
|
||||||
|
|
||||||
regParams := &ec2.RegisterImageInput{
|
regParams := &ec2.RegisterImageInput{
|
||||||
@ -160,7 +162,7 @@ func pushAWS(args []string) {
|
|||||||
log.Debugf("RegisterImage:\n%v", regParams)
|
log.Debugf("RegisterImage:\n%v", regParams)
|
||||||
regResp, err := compute.RegisterImage(regParams)
|
regResp, err := compute.RegisterImage(regParams)
|
||||||
if err != nil {
|
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)
|
log.Infof("Created AMI: %s", *regResp.ImageId)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user