diff --git a/policy/handler.go b/policy/handler.go index 0ad51908..59d3383d 100644 --- a/policy/handler.go +++ b/policy/handler.go @@ -334,10 +334,7 @@ func (h *Handler) Run(ctx context.Context) { } func scalingNeeded(a sdk.ScalingAction, countCount int64) bool { - // The DAS returns count but the direction is none, for vertical and horizontal - // policies checking the direction is enough. - return (a.Direction == sdk.ScaleDirectionNone && countCount != a.Count) || - a.Direction != sdk.ScaleDirectionNone + return a.Direction != sdk.ScaleDirectionNone && countCount != a.Count } func (h *Handler) waitAndScale(ctx context.Context) error {