From 82796ed1e534b7e59dd57f6fa2a3b8666118b8ec Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Wed, 16 Jan 2019 03:51:59 +0000 Subject: [PATCH] =?UTF-8?q?lb:=20=E6=94=B9=E6=AD=A3health=5Fcheck=5F{domai?= =?UTF-8?q?n,path}=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/compute/models/loadbalancerlisteners.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/compute/models/loadbalancerlisteners.go b/pkg/compute/models/loadbalancerlisteners.go index df74938cba..9ad30efb66 100644 --- a/pkg/compute/models/loadbalancerlisteners.go +++ b/pkg/compute/models/loadbalancerlisteners.go @@ -237,8 +237,8 @@ func (man *SLoadbalancerListenerManager) ValidateCreateData(ctx context.Context, "health_check": validators.NewStringChoicesValidator("health_check", LB_BOOL_VALUES).Default(LB_BOOL_ON), "health_check_type": checkTypeV, - "health_check_domain": validators.NewDomainNameValidator("domain").AllowEmpty(true).Default(""), - "health_check_path": validators.NewURLPathValidator("path").Default(""), + "health_check_domain": validators.NewDomainNameValidator("health_check_domain").AllowEmpty(true).Default(""), + "health_check_path": validators.NewURLPathValidator("health_check_path").Default(""), "health_check_http_code": validators.NewStringMultiChoicesValidator("health_check_http_code", LB_HEALTH_CHECK_HTTP_CODES).Sep(",").Default(LB_HEALTH_CHECK_HTTP_CODE_DEFAULT), "health_check_rise": validators.NewRangeValidator("health_check_rise", 1, 1000).Default(3), @@ -324,8 +324,8 @@ func (lblis *SLoadbalancerListener) ValidateUpdateData(ctx context.Context, user "health_check": validators.NewStringChoicesValidator("health_check", LB_BOOL_VALUES), "health_check_type": LoadbalancerListenerManager.checkTypeV(lblis.ListenerType), - "health_check_domain": validators.NewDomainNameValidator("domain").AllowEmpty(true), - "health_check_path": validators.NewURLPathValidator("path"), + "health_check_domain": validators.NewDomainNameValidator("health_check_domain").AllowEmpty(true), + "health_check_path": validators.NewURLPathValidator("health_check_path"), "health_check_http_code": validators.NewStringMultiChoicesValidator("health_check_http_code", LB_HEALTH_CHECK_HTTP_CODES).Sep(","), "health_check_rise": validators.NewRangeValidator("health_check_rise", 1, 1000),