[openrcdmcryptcfg] Fixed pep8 whining in module

- fix small regression
- see also https://github.com/calamares/calamares/pull/750
This commit is contained in:
Philip 2017-06-19 16:19:46 +02:00
parent 4c7dbad755
commit 61f63cfa5c

View File

@ -27,7 +27,7 @@ def write_dmcrypt_conf(partitions, root_mount_point, dmcrypt_conf_path):
crypto_source = ""
for partition in partitions:
if partition["mountPoint"] == "/home"
if partition["mountPoint"] == "/home" \
and "luksMapperName" in partition:
crypto_target = partition["luksMapperName"]
crypto_source = "/dev/disk/by-uuid/{!s}".format(partition["uuid"])