REPORT: RomM finds its games, Ghost no device lock-out; box walk makes no folder for a passed value
gates / gates (push) Successful in 4s
gates / gates (push) Successful in 4s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
1 parent
fb1847160c
commit
806d2d0924
3 files changed
+62
-35
No files matched your search
+4
-5
@@ -267,7 +267,7 @@ GENERATED = {}
|
||||
DEPLOYED_THIS_RUN = set()
|
||||
|
||||
|
||||
def deploy_values(name, sub):
|
||||
def deploy_values(name, sub, given=None):
|
||||
"""Fill EVERY required deploy field the way the wizard would, by asking the box what this app
|
||||
asks for — `GET /api/stacks/<n>/deploy-fields` — instead of assuming DOMAIN+SUBDOMAIN.
|
||||
|
||||
@@ -282,7 +282,8 @@ def deploy_values(name, sub):
|
||||
code, d = ctl("GET", f"/api/stacks/{name}/deploy-fields")
|
||||
fields = (((d.get("data") or {}).get("metadata") or {}).get("deploy_fields")) or []
|
||||
values = {"DOMAIN": DOMAIN, "SUBDOMAIN": sub}
|
||||
made = []
|
||||
values.update(given or {}) # a caller's own value wins, and no drive folder is made for it (2026-10-16: a passed
|
||||
made = [] # HDD_PATH still got DRIVE/<app> created, an empty folder nobody asked for)
|
||||
for f in fields:
|
||||
ev, ty = f.get("env_var"), f.get("type")
|
||||
if ev in values:
|
||||
@@ -319,9 +320,7 @@ def deploy(name, sub, extra_values=None):
|
||||
if st.get("deployed"):
|
||||
say(f" [1] {name} already deployed — reusing")
|
||||
return True
|
||||
values = deploy_values(name, sub)
|
||||
if extra_values:
|
||||
values.update(extra_values)
|
||||
values = deploy_values(name, sub, extra_values)
|
||||
body = {"values": values}
|
||||
if os.environ.get("KEPT"): # decision 36: the household's answer when the drive holds old data ("fresh" moves it aside, deletes nothing)
|
||||
body["kept_data"] = os.environ["KEPT"]
|
||||
|
||||
Reference in new issue
Block a user