Skip to content

Commit

Permalink
fix: re-add ALGOD_PORT and INDEXER_PORT support
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-makerx committed Mar 22, 2023
1 parent c82dc60 commit 82d0218
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/algokit_utils/network_clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ def _get_config_from_environment(environment_prefix: str) -> AlgoClientConfig:
server = os.getenv(f"{environment_prefix}_SERVER")
if server is None:
raise Exception(f"Server environment variable not set: {environment_prefix}_SERVER")
port = os.getenv(f"{environment_prefix}_PORT")
if port:
server = server.rstrip("/")
server = f"{server}:{port}"
return AlgoClientConfig(server, os.getenv(f"{environment_prefix}_TOKEN"))


Expand Down

0 comments on commit 82d0218

Please sign in to comment.