We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67cb3ff commit 9e4e00bCopy full SHA for 9e4e00b
src/agentex/lib/utils/registration.py
@@ -21,11 +21,12 @@ def get_auth_principal(env_vars: EnvironmentVariables):
21
return None
22
23
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:
+ build_info_path = os.environ.get("BUILD_INFO_PATH")
+ logger.info(f"Getting build info from {build_info_path}")
26
+ if not build_info_path:
27
28
try:
- with open(env_vars.BUILD_INFO_PATH, "r") as f:
29
+ with open(build_info_path, "r") as f:
30
return json.load(f)
31
except Exception:
32
0 commit comments