Fixing starting of service via str argument (#1779)

This commit is contained in:
Anton Hvornum 2023-05-03 17:52:51 +02:00 committed by GitHub
parent 2d06cf592a
commit 2531a57050
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -570,6 +570,8 @@ class Installer:
def enable_service(self, services: Union[str, List[str]]) -> None:
if type(services[0]) in (list, tuple):
services = services[0]
if type(services) == str:
services = [services, ]
for service in services:
self.log(f'Enabling service {service}', level=logging.INFO)