From f4cbb5d7dcd5997a69f1f2ae7f4ce9622b1a0916 Mon Sep 17 00:00:00 2001 From: "sangkyu.kim" Date: Fri, 2 Apr 2021 14:55:05 +0900 Subject: [PATCH] fix length validation message --- builder/ncloud/config.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/builder/ncloud/config.go b/builder/ncloud/config.go index fe6207083..5f8aeaf2f 100644 --- a/builder/ncloud/config.go +++ b/builder/ncloud/config.go @@ -109,15 +109,15 @@ func (c *Config) Prepare(raws ...interface{}) ([]string, error) { } if c.ServerImageProductCode != "" && len(c.ServerImageProductCode) > 50 { - errs = packersdk.MultiErrorAppend(errs, errors.New("if `server_image_product_code` field is set, length of `server_image_product_code` should be max 20")) + errs = packersdk.MultiErrorAppend(errs, errors.New("if `server_image_product_code` field is set, length of `server_image_product_code` should be max 50")) } if c.ServerProductCode != "" && len(c.ServerProductCode) > 50 { - errs = packersdk.MultiErrorAppend(errs, errors.New("if `server_product_code` field is set, length of `server_product_code` should be max 20")) + errs = packersdk.MultiErrorAppend(errs, errors.New("if `server_product_code` field is set, length of `server_product_code` should be max 50")) } if c.ServerImageName != "" && (len(c.ServerImageName) < 3 || len(c.ServerImageName) > 30) { - errs = packersdk.MultiErrorAppend(errs, errors.New("if `server_image_name` field is set, length of `server_image_name` should be min 3 and max 20")) + errs = packersdk.MultiErrorAppend(errs, errors.New("if `server_image_name` field is set, length of `server_image_name` should be min 3 and max 30")) } if c.ServerImageDescription != "" && len(c.ServerImageDescription) > 1000 {