fix(access-point): a change the AP refuses in apply_ap_config is raised, and nothing applied (#54)
driver / standard (pull_request) Successful in 16s
driver / lint (pull_request) Successful in 11s
driver / lowest (pull_request) Successful in 28s
driver / types (pull_request) Successful in 1m4s
driver / test (3.13) (pull_request) Successful in 54s
driver / test (3.12) (pull_request) Successful in 1m8s
driver / build (pull_request) Successful in 28s
driver / security (pull_request) Successful in 59s
CI / driver (pull_request) Successful in 2m8s
driver / publish (pull_request) Skipped

The configuration ran as one detached script, so a refused uci step
only reached its log while the call reported the part as applied. The
changes are now staged by a script the call waits for: a uci wrapper
records each refused set, add, add_list or delete with its part, and at
the end every config is reverted and the script exits 3, which raises
CommandErrorException naming each part, passphrases masked. Quiet -q
calls stay tests. The commits, LuCI's service, the reloads and the
restart run detached afterwards, as before.

Closes #54
This commit is contained in:
Christian Manivong committed 2026-11-29 22:43:34 +01:00
1 parent f71c12dfb6
commit 9bac9bd1af
6 files changed
+350 -98

No files matched your search

+2 -2
View File
@@ -70,9 +70,9 @@ def _web_ui(config: ApConfigDict, plan: Plan) -> None:
if "web_ui" not in config:
return
if config["web_ui"]:
plan.commands.append("/etc/init.d/uhttpd enable && /etc/init.d/uhttpd start")
plan.actions.append("/etc/init.d/uhttpd enable && /etc/init.d/uhttpd start")
else:
plan.commands.append("/etc/init.d/uhttpd stop; /etc/init.d/uhttpd disable")
plan.actions.append("/etc/init.d/uhttpd stop; /etc/init.d/uhttpd disable")
def _ssh_port(config: ApConfigDict, plan: Plan) -> None: