From fad95b5f20818bf5d7985246893a57bab4c7ac6f Mon Sep 17 00:00:00 2001 From: Zipofar Date: Mon, 15 May 2023 11:16:15 +0300 Subject: [PATCH] [75] hange code status for continue http check --- internal/pkg/resource_availability_manager/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/pkg/resource_availability_manager/main.go b/internal/pkg/resource_availability_manager/main.go index c9f0a35e..bc9adc16 100644 --- a/internal/pkg/resource_availability_manager/main.go +++ b/internal/pkg/resource_availability_manager/main.go @@ -27,7 +27,7 @@ const ( NetworkPointService NetworkPointType = "service" ResourceAvailabilityRequestIngress ResourceAvailabilityRequestType = "ingress" ResourceAvailabilityRequestLoadbalancer ResourceAvailabilityRequestType = "loadbalancer" - FailedHttpCode int = 500 + FailedHttpCode int = 503 HttpsPortNumber int = 443 ) @@ -207,7 +207,7 @@ func (r *ResourceAvailabilityManager) CheckHttpStatus(ctx context.Context, addre return err } - if resp.StatusCode >= FailedHttpCode { + if resp.StatusCode == FailedHttpCode { err = fmt.Errorf("Status is %s", resp.Status) }