Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

Commit b6f1fe8

Browse files
committed
attempt at fix
1 parent fd1b150 commit b6f1fe8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

hatchet_sdk/loader.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ def __init__(self, directory: str):
6868
self.directory = directory
6969

7070
def load_client_config(self, defaults: ClientConfig) -> ClientConfig:
71+
_empty_defaults_do_not_export = ClientConfig()
72+
7173
config_file_path = os.path.join(self.directory, "client.yaml")
7274
config_data: object = {"tls": {}}
7375

@@ -99,9 +101,12 @@ def get_config_value(key, env_var):
99101
"Token must be set via HATCHET_CLIENT_TOKEN environment variable"
100102
)
101103

102-
host_port = get_config_value("hostPort", "HATCHET_CLIENT_HOST_PORT")
104+
host_port = get_config_value("host_port", "HATCHET_CLIENT_HOST_PORT")
103105
server_url: str | None = None
104106

107+
if host_port != _empty_defaults_do_not_export.host_port:
108+
server_url = host_port
109+
105110
grpc_max_recv_message_length = get_config_value(
106111
"grpc_max_recv_message_length",
107112
"HATCHET_CLIENT_GRPC_MAX_RECV_MESSAGE_LENGTH",

0 commit comments

Comments
 (0)