Skip to content

Commit 23f5b18

Browse files
author
mikatong
committed
update
1 parent 4ac0ea4 commit 23f5b18

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

builder/tencentcloud/cvm/access_config.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ func (cf *TencentCloudAccessConfig) Prepare(ctx *interpolate.Context) []error {
159159
errs = append(errs, err)
160160
}
161161

162-
if cf.CvmEndpoint == "" || cf.VpcEndpoint == "" || cf.TagEndpoint == "" {
162+
if !((cf.CvmEndpoint == "" && cf.VpcEndpoint == "" && cf.TagEndpoint == "") ||
163+
(cf.CvmEndpoint != "" && cf.VpcEndpoint != "" && cf.TagEndpoint != "")) {
163164
errs = append(errs, fmt.Errorf("parameter cvm_endpoint, vpc_endpoint and tag_endpoint must be set simultaneously"))
164165
}
165166

0 commit comments

Comments
 (0)