Skip to content

Commit

Permalink
[75] hange code status for continue http check
Browse files Browse the repository at this point in the history
  • Loading branch information
zipofar committed May 16, 2023
1 parent 149ed73 commit fad95b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/pkg/resource_availability_manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const (
NetworkPointService NetworkPointType = "service"
ResourceAvailabilityRequestIngress ResourceAvailabilityRequestType = "ingress"
ResourceAvailabilityRequestLoadbalancer ResourceAvailabilityRequestType = "loadbalancer"
FailedHttpCode int = 500
FailedHttpCode int = 503
HttpsPortNumber int = 443
)

Expand Down Expand Up @@ -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)
}

Expand Down

0 comments on commit fad95b5

Please sign in to comment.