Skip to content

Commit

Permalink
don't use match syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
galen-runpod committed Sep 20, 2024
1 parent d9bd8d0 commit d7999f4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions runpod/serverless/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,12 @@ def start(config: Dict[str, Any]):

# --------------------------------- SLS-Core --------------------------------- #

match os.getenv("RUNPOD_SLS_CORE"):
case None if os.getenv("RUNPOD_USE_CORE") is not None:
if os.getenv("RUNPOD_SLS_CORE") is None and os.getenv("RUNPOD_USE_CORE") is not None:
log.warn("RUNPOD_USE_CORE is deprecated. Please use RUNPOD_SLS_CORE instead.")
core.main(config)
return

case x if x.lower() in ["1", "t", "true"]:
elif os.getenv("RUNPOD_SLS_CORE","false").lower() in ["1", "t", "true"]:
core.main(config)
return

Expand Down

0 comments on commit d7999f4

Please sign in to comment.