mirror of
https://github.com/hashicorp/packer.git
synced 2026-02-20 16:30:06 -05:00
fixed tencentcloud builder error strings
This commit is contained in:
parent
ba66d5d857
commit
b4e70cc0ec
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue