Skip to content

Commit

Permalink
Fixed incorrect parsing of list values in deployment script
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogsilva committed Nov 26, 2024
1 parent db74962 commit c92e829
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions deployments/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ def from_config_parser(cls, config_parser: configparser.ConfigParser):
discord_notification_urls=[
i.strip()
for i in config_parser["main"]["discord_notification_urls"].split(",")
if i != ""
],
frontend_image=config_parser["main"]["frontend_image"],
martin_image_tag=config_parser["main"]["martin_image_tag"],
Expand Down Expand Up @@ -211,8 +212,9 @@ def from_config_parser(cls, config_parser: configparser.ConfigParser):
"env_admin_user_username"
],
webapp_env_cors_origins=[
o.strip()
for o in config_parser["webapp"]["env_cors_origins"].split(",")
i.strip()
for i in config_parser["webapp"]["env_cors_origins"].split(",")
if i != ""
],
webapp_env_num_uvicorn_worker_processes=config_parser.getint(
"webapp", "env_num_uvicorn_worker_processes"
Expand Down

0 comments on commit c92e829

Please sign in to comment.