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:
Sunil Mohan Adapa 2022-09-16 10:50:21 -07:00 committed by James Valleroy
parent d7a60b1aca
commit b29182a0eb
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -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')