mirror of https://github.com/kubernetes/kops.git
Show the reason for which an AWS image is invalid
This commit is contained in:
parent
5710b1ef2e
commit
9fa7cf6741
|
|
@ -168,7 +168,7 @@ func awsValidateInstanceTypeAndImage(instanceTypeFieldPath *field.Path, imageFie
|
||||||
imageInfo, err := cloud.ResolveImage(image)
|
imageInfo, err := cloud.ResolveImage(image)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return append(allErrs, field.Invalid(imageFieldPath, image,
|
return append(allErrs, field.Invalid(imageFieldPath, image,
|
||||||
fmt.Sprintf("image specified is invalid: %q", image)))
|
fmt.Sprintf("specified image %q is invalid: %s", image, err)))
|
||||||
}
|
}
|
||||||
imageArch := fi.StringValue(imageInfo.Architecture)
|
imageArch := fi.StringValue(imageInfo.Architecture)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue