Fix all 4 Feature Manager bugs in server.py
Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/77921fb1-4d4b-4d10-b982-b3768b858b86 Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
ab60d2b504
commit
9cc237fb5b
@@ -882,7 +882,12 @@ async def api_features():
|
||||
domain_name = feat.get("domain_name")
|
||||
domain_configured = True
|
||||
if domain_name:
|
||||
domain_configured = os.path.exists(os.path.join(DOMAINS_DIR, domain_name))
|
||||
domain_path = os.path.join(DOMAINS_DIR, domain_name)
|
||||
try:
|
||||
with open(domain_path, "r") as f:
|
||||
domain_configured = bool(f.read(256).strip())
|
||||
except OSError:
|
||||
domain_configured = False
|
||||
|
||||
extra_fields = []
|
||||
for ef in feat.get("extra_fields", []):
|
||||
|
||||
Reference in New Issue
Block a user