mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-30 02:45:37 -04:00
Some more PEP
This commit is contained in:
parent
db7577b9f8
commit
bc66502fda
5 changed files with 58 additions and 55 deletions
|
@ -24,12 +24,11 @@ import libcalamares
|
|||
|
||||
def run():
|
||||
""" Remove live user from target system """
|
||||
username = libcalamares.job.configuration["username"]
|
||||
|
||||
username = libcalamares.job.configuration[("username")]
|
||||
try:
|
||||
libcalamares.utils.check_chroot_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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue