Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeWithEmad committed Nov 18, 2023
1 parent c315c2c commit 9d50882
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions tutorminio/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,16 @@
list(config.get("overrides", {}).items())
)


@tutor_hooks.Filters.APP_PUBLIC_HOSTS.add()
def add_minio_hosts(
hosts: list[str], context_name: Literal["local", "dev"]
) -> list[str]:
if context_name == "dev":
hosts.append("{{ MINIO_CONSOLE_HOST }}:9001")
else:
hosts.append("{{ MINIO_CONSOLE_HOST }}")

hosts: list[str], context_name: t.Literal["local", "dev"]
) -> list[str]:
port = "9001" if context_name == "dev" else ""
hosts.append(f"{{{{MINIO_CONSOLE_HOST}}}}:{port}")
return hosts


# Add pre-init script as init task with high priority
with open(
os.path.join(HERE, "templates", "minio", "tasks", "minio", "init"),
Expand Down

0 comments on commit 9d50882

Please sign in to comment.