mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-04 08:13:38 +00:00
config: Minor update to privileged method signature
Tests: - Setting logging method works. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
d7a60b1aca
commit
b29182a0eb
@ -34,7 +34,7 @@ def get_logging_mode() -> str:
|
||||
|
||||
|
||||
@privileged
|
||||
def set_logging_mode(mode: str) -> None:
|
||||
def set_logging_mode(mode: str):
|
||||
"""Set the current logging mode."""
|
||||
if mode not in ('volatile', 'persistent', 'none'):
|
||||
raise ValueError('Invalid mode')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user