[openrcdmcryptcfg] PEP8 modification

- see also: https://github.com/calamares/calamares/pull/750
This commit is contained in:
Philip 2017-06-23 11:35:14 +02:00
parent 66c36446fa
commit 779f602df7

View File

@ -4,6 +4,7 @@
# === This file is part of Calamares - <http://github.com/calamares> === # === This file is part of Calamares - <http://github.com/calamares> ===
# #
# Copyright 2017, Ghiunhan Mamut <venerix@redcorelinux.org> # Copyright 2017, Ghiunhan Mamut <venerix@redcorelinux.org>
# Copyright 2017, Philip Müller <philm@manjaro.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
@ -31,7 +32,7 @@ def write_dmcrypt_conf(partitions, root_mount_point, dmcrypt_conf_path):
and "luksMapperName" in partition: and "luksMapperName" in partition:
crypto_target = partition["luksMapperName"] crypto_target = partition["luksMapperName"]
crypto_source = "/dev/disk/by-uuid/{!s}".format(partition["uuid"]) crypto_source = "/dev/disk/by-uuid/{!s}".format(partition["uuid"])
if "luksMapperName" not in partition: if "luksMapperName" not in partition:
return None return None