service: Remove reference to managed_services in a message

Closes: #2337.

Tests:

- Update code to stop/start a daemon that is not listed in any
Daemon/RelatedDaemon component of an app. Notice the message show.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2023-04-28 14:48:19 -07:00 committed by James Valleroy
parent 8b7c0fb0bf
commit c8a8d4bf33
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -113,6 +113,6 @@ def _assert_service_is_managed_by_plinth(service_name):
managed_services = _get_managed_services()
if service_name not in managed_services:
msg = ("The service '%s' is not managed by FreedomBox. Access is only "
"permitted for services listed in the 'managed_services' "
"variable of any FreedomBox app.") % service_name
"permitted for services listed in the Daemon and RelatedDaemon "
"components of any FreedomBox app.") % service_name
raise ValueError(msg)