diff --git a/src/modules/removeuser/main.py b/src/modules/removeuser/main.py index f31e1dc9d..6d4946f23 100644 --- a/src/modules/removeuser/main.py +++ b/src/modules/removeuser/main.py @@ -4,6 +4,7 @@ # === This file is part of Calamares - === # # Copyright 2015, Teo Mrnjavac +# Copyright 2017. Alf Gaida # # Calamares is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -23,12 +24,16 @@ import libcalamares def run(): - """ Remove live user from target system """ + """ + Remove live user from target system + """ username = libcalamares.job.configuration["username"] try: - libcalamares.utils.check_target_env_call(["userdel", "-f", "-r", username]) + libcalamares.utils.check_target_env_call(["userdel", "-f", + "-r", username]) except subprocess.CalledProcessError as e: - libcalamares.utils.debug("Cannot remove user.", "'userdel' terminated with exit code {}.".format(e.returncode)) - + libcalamares.utils.debug("Cannot remove user.", + "'userdel' terminated with exit code", + "{}.".format(e.returncode) return None