Fixed pep8 whining in module dracut

added myself to copyright
main
Alf Gaida 8 years ago committed by Teo Mrnjavac
parent 76604d9821
commit 5b7c237839

@ -5,6 +5,7 @@
# #
# Copyright 2014-2015, Philip Müller <philm@manjaro.org> # Copyright 2014-2015, Philip Müller <philm@manjaro.org>
# Copyright 2014, Teo Mrnjavac <teo@kde.org> # Copyright 2014, Teo Mrnjavac <teo@kde.org>
# Copyright 2017, Alf Gaida <agaid@siduction.org>
# #
# Calamares is free software: you can redistribute it and/or modify # Calamares is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
@ -24,7 +25,8 @@ from libcalamares.utils import target_env_call
def run_dracut(): def run_dracut():
""" Creates initramfs, even when initramfs already exists. """
Creates initramfs, even when initramfs already exists.
:return: :return:
""" """
@ -32,11 +34,14 @@ def run_dracut():
def run(): def run():
""" Starts routine to create initramfs. It passes back the exit code if it fails. """
Starts routine to create initramfs. It passes back the exit code
if it fails.
:return: :return:
""" """
return_code = run_dracut() return_code = run_dracut()
if return_code != 0: if return_code != 0:
return "Failed to run dracut on the target", "The exit code was {}".format(return_code) return ("Failed to run dracut on the target",
"The exit code was {}".format(return_code))

Loading…
Cancel
Save