fix: no fixed uid for netOrk's own account on OMV yet (NetOrk/netork#1817)
driver / standard (pull_request) Successful in 15s
driver / lint (pull_request) Successful in 15s
driver / types (pull_request) Successful in 1m26s
driver / test (3.12) (pull_request) Successful in 1m20s
driver / test (3.13) (pull_request) Successful in 1m12s
driver / lowest (pull_request) Successful in 29s
driver / build (pull_request) Successful in 28s
driver / security (pull_request) Successful in 1m11s
CI / driver (pull_request) Successful in 3m1s
driver / publish (pull_request) Skipped

Its keys go through UserMgmt, which knows only the users it made, and whether
setUser takes a uid is untested: _account_create_with_uid raises
NotImplementedError, so the switch fails and says why.
This commit is contained in:
Christian Manivong committed 2026-11-01 12:42:31 +01:00
1 parent 57feb44a76
commit 61ee8c8db8
3 files changed
+16

No files matched your search

+5
View File
@@ -105,6 +105,11 @@ class OmvLocalAccountsMixin(LocalAccountsMixin):
)
return [["usermod", "-p", password_hash, name]] if password_hash else []
def _account_create_with_uid(self, name: str, uid: int) -> list[list[str]]:
"""Not on OMV yet (NetOrk/netork#1817): its keys go through ``UserMgmt``, which
knows only the users it made, and whether ``setUser`` takes a uid is untested."""
raise NotImplementedError
def _account_open(
self, name: str, password_hash: str | None, *, locked: bool
) -> list[list[str]]: