From b4e70cc0ec0b24b040fe0dfbf68c560dc6c0f736 Mon Sep 17 00:00:00 2001 From: Li Kexian Date: Thu, 4 Jul 2019 12:15:31 +0800 Subject: [PATCH] fixed tencentcloud builder error strings --- builder/tencentcloud/cvm/image_config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builder/tencentcloud/cvm/image_config.go b/builder/tencentcloud/cvm/image_config.go index 5f666b74e..395f5c786 100644 --- a/builder/tencentcloud/cvm/image_config.go +++ b/builder/tencentcloud/cvm/image_config.go @@ -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 {