Merge pull request #7840 from tencentyun/master

fixed tencentcloud builder error strings
This commit is contained in:
Megan Marsh 2019-07-08 09:30:15 -07:00 committed by GitHub
commit ee20153fe9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -22,9 +22,9 @@ func (cf *TencentCloudImageConfig) Prepare(ctx *interpolate.Context) []error {
var errs []error
cf.ForcePoweroff = true
if cf.ImageName == "" {
errs = append(errs, fmt.Errorf("image_name must be set"))
errs = append(errs, fmt.Errorf("image_name must be specified"))
} else if len(cf.ImageName) > 20 {
errs = append(errs, fmt.Errorf("image_num length should not exceed 20 characters"))
errs = append(errs, fmt.Errorf("image_name length should not exceed 20 characters"))
}
if len(cf.ImageDescription) > 60 {