[PEP8] fix several modules
This commit is contained in:
parent
cf1c4bd7ae
commit
09f11a4091
@ -30,7 +30,10 @@ class MhwdController:
|
||||
def __init__(self):
|
||||
self.__root = libcalamares.globalstorage.value("rootMountPoint")
|
||||
self.__bus = libcalamares.job.configuration.get('bus', [])
|
||||
self.__identifier = libcalamares.job.configuration.get('identifier', [])
|
||||
self.__identifier = libcalamares.job.configuration.get(
|
||||
'identifier',
|
||||
[]
|
||||
)
|
||||
self.__local = libcalamares.job.configuration['local']
|
||||
self.__repo = libcalamares.job.configuration['repo']
|
||||
self._driver = libcalamares.job.configuration['driver']
|
||||
|
@ -86,7 +86,8 @@ class ConfigController:
|
||||
self.terminate('gpg-agent')
|
||||
|
||||
# Update grub.cfg
|
||||
if exists(join(self.root, "usr/bin/update-grub")) and libcalamares.globalstorage.value("bootLoader") is not None:
|
||||
if exists(join(self.root, "usr/bin/update-grub")) \
|
||||
and libcalamares.globalstorage.value("bootLoader") is not None:
|
||||
target_env_call(["update-grub"])
|
||||
|
||||
return None
|
||||
|
@ -69,7 +69,7 @@ def run():
|
||||
if ec != 0:
|
||||
if tgt['mandatory']:
|
||||
return ("Cannot enable systemd target {}".format(tgt['name']),
|
||||
"systemctl enable call in chroot returned error code"
|
||||
"systemctl enable call in chroot returned error code "
|
||||
"{}".format(ec)
|
||||
)
|
||||
else:
|
||||
@ -90,7 +90,7 @@ def run():
|
||||
if dbl['mandatory']:
|
||||
return ("Cannot disable systemd service"
|
||||
"{}".format(dbl['name']),
|
||||
"systemctl disable call in chroot returned error code"
|
||||
"systemctl disable call in chroot returned error code "
|
||||
"{}".format(ec))
|
||||
else:
|
||||
libcalamares.utils.debug(
|
||||
@ -112,14 +112,14 @@ def run():
|
||||
|
||||
if ec != 0:
|
||||
return "Cannot enable systemd service {}".format(dm), \
|
||||
"systemctl enable call in chroot returned error code"
|
||||
"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"
|
||||
"systemctl enable call in chroot returned error code "
|
||||
"{}".format(ec)
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user