Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeWithEmad committed Nov 27, 2023
1 parent 58e42b5 commit 769665e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
1 change: 0 additions & 1 deletion tutorminio/__about__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
__version__ = "16.0.1"

13 changes: 6 additions & 7 deletions tutorminio/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,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 769665e

Please sign in to comment.