Skip to content

Commit

Permalink
fixed assertion error
Browse files Browse the repository at this point in the history
  • Loading branch information
JTaeuber committed Nov 14, 2024
1 parent 3326b3a commit b7665ac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions kube_downscaler/scaler.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
import logging
import re
import time
from typing import Any
from typing import FrozenSet
from typing import List
from typing import Optional
from typing import Pattern
from typing import Tuple

import pykube
import requests
Expand Down Expand Up @@ -499,7 +501,7 @@ def scale_down_jobs(
matching_labels: FrozenSet[Pattern],
dry_run: bool,
enable_events: bool,
) -> dict:
) -> Tuple[Optional[Any], str]:
policy: APIObject = None
operation = "no_scale"
obj = None
Expand Down Expand Up @@ -603,7 +605,7 @@ def scale_down_jobs(
"Normal",
dry_run,
)
return {"obj": obj, "operation": operation}
return obj, operation


def scale_up(
Expand Down

0 comments on commit b7665ac

Please sign in to comment.