From 66c36446fa75456e675cc46b37cd7dece691dfe1 Mon Sep 17 00:00:00 2001 From: Philip Date: Fri, 23 Jun 2017 11:32:41 +0200 Subject: [PATCH] [services] PEP8 modification --- src/modules/services/main.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/modules/services/main.py b/src/modules/services/main.py index 3648ff91f..b6616392d 100644 --- a/src/modules/services/main.py +++ b/src/modules/services/main.py @@ -100,23 +100,27 @@ def run(): "systemctl disable call in chroot returned error code " "{}".format(ec) ) - + if libcalamares.globalstorage.contains("displayManagers"): for dm in libcalamares.globalstorage.value("displayManagers"): - if not exists(join(rootmnt, "etc/systemd/system/display-manager.service")): + if not exists(join( + rootmnt, "etc/systemd/system/display-manager.service" + )): ec = libcalamares.utils.target_env_call( ['systemctl', 'enable', '{}.service'.format(dm)] ) - + if ec != 0: return "Cannot enable systemd service {}".format(dm), \ - "systemctl enable call in chroot returned error code {}".format(ec) + "systemctl enable call in chroot returned error code" + "{}".format(ec) else: libcalamares.utils.debug( "Cannot enable systemd service {}".format(dm) ) libcalamares.utils.debug( - "systemctl enable call in chroot returned error code {}".format(ec) + "systemctl enable call in chroot returned error code" + "{}".format(ec) ) return None