Skip to content

Commit 9e4e00b

Browse files
committed
Update registration.py
1 parent 67cb3ff commit 9e4e00b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/agentex/lib/utils/registration.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ def get_auth_principal(env_vars: EnvironmentVariables):
2121
return None
2222

2323
def get_build_info(env_vars: EnvironmentVariables):
24-
logger.info(f"Getting build info from {env_vars.BUILD_INFO_PATH}")
25-
if not env_vars.BUILD_INFO_PATH:
24+
build_info_path = os.environ.get("BUILD_INFO_PATH")
25+
logger.info(f"Getting build info from {build_info_path}")
26+
if not build_info_path:
2627
return None
2728
try:
28-
with open(env_vars.BUILD_INFO_PATH, "r") as f:
29+
with open(build_info_path, "r") as f:
2930
return json.load(f)
3031
except Exception:
3132
return None

0 commit comments

Comments
 (0)