more fixes

This commit is contained in:
Adil Hafeez 2025-09-30 15:27:30 -07:00
parent 3b672e798c
commit 94d57804d7
No known key found for this signature in database
GPG key ID: 9B18EF7691369645
12 changed files with 360 additions and 47 deletions

View file

@ -91,10 +91,10 @@ def validate_and_render_schema():
# Process agents section and convert to endpoints
agents = config_yaml.get("agents", [])
for agent in agents:
agent_name = agent.get("name")
agent_id = agent.get("id")
agent_endpoint = agent.get("url")
if agent_name and agent_endpoint:
if agent_id and agent_endpoint:
urlparse_result = urlparse(agent_endpoint)
if urlparse_result.scheme and urlparse_result.hostname:
protocol = urlparse_result.scheme
@ -106,7 +106,7 @@ def validate_and_render_schema():
else:
port = 443
endpoints[agent_name] = {
endpoints[agent_id] = {
"endpoint": urlparse_result.hostname,
"port": port,
"protocol": protocol,