app-platform: type manifest launch interfaces
This commit is contained in:
@@ -68,6 +68,10 @@ def manifest_launch_port(app: dict[str, Any]) -> int | None:
|
||||
if isinstance(port, str) and port.isdigit():
|
||||
return int(port)
|
||||
|
||||
health_check = app.get("health_check")
|
||||
if not isinstance(health_check, dict) or str(health_check.get("type", "")).lower() != "http":
|
||||
return None
|
||||
|
||||
ports = app.get("ports")
|
||||
if not isinstance(ports, list):
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user