Skip to content

Commit

Permalink
fix: add fallback for public hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed Jun 19, 2024
1 parent c71f583 commit 6bdea1b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tutoraspects/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,6 @@
)


@hooks.Filters.APP_PUBLIC_HOSTS.add()
def _aspects_public_hosts(
hosts: list[str], context_name: t.Literal["local", "dev"]
) -> list[str]:
Expand All @@ -452,6 +451,11 @@ def _aspects_public_hosts(
hosts += ["{{ SUPERSET_HOST }}"]
return hosts

try:
hooks.Filters.APP_PUBLIC_HOSTS.add(_aspects_public_hosts)
except AttributeError:
pass


########################################
# INITIALIZATION TASKS
Expand Down

0 comments on commit 6bdea1b

Please sign in to comment.