fixed tencentcloud builder error strings

This commit is contained in:
Li Kexian 2019-07-04 12:15:31 +08:00
parent ba66d5d857
commit b4e70cc0ec
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 {