builder/amazon/common: fix incorrect printf verb type in amiRegionCopy
Fixes the following vet reports: builder/amazon/common/step_ami_region_copy.go:81: arg target for printf verb %s of wrong type: github.com/mitchellh/goamz/aws.Region builder/amazon/common/step_ami_region_copy.go:93: arg target for printf verb %s of wrong type: github.com/mitchellh/goamz/aws.Region
This commit is contained in:
parent
8c36684e98
commit
05c2206684
@ -79,7 +79,7 @@ func amiRegionCopy(state multistep.StateBag, auth aws.Auth, imageId string,
|
||||
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("Error Copying AMI (%s) to region (%s): %s",
|
||||
imageId, target, err)
|
||||
imageId, target.Name, err)
|
||||
}
|
||||
|
||||
stateChange := StateChangeConf{
|
||||
@ -91,7 +91,7 @@ func amiRegionCopy(state multistep.StateBag, auth aws.Auth, imageId string,
|
||||
|
||||
if _, err := WaitForState(&stateChange); err != nil {
|
||||
return "", fmt.Errorf("Error waiting for AMI (%s) in region (%s): %s",
|
||||
resp.ImageId, target, err)
|
||||
resp.ImageId, target.Name, err)
|
||||
}
|
||||
|
||||
return resp.ImageId, nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user