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 authored and James Valleroy committed 2023-05-07 07:36:54 -04:00
1 parent 8b7c0fb0bf
commit c8a8d4bf33
1 file changed
+2 -2
+2 -2
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)