[openrcdmcryptcfg] Fixed pep8 whining in module

- see also https://github.com/calamares/calamares/pull/750
This commit is contained in:
Philip 2017-06-19 18:50:24 +02:00
parent af89d58647
commit 67987fa29b

View File

@ -36,9 +36,8 @@ def write_dmcrypt_conf(partitions, root_mount_point, dmcrypt_conf_path):
return None return None
with open(os.path.join(root_mount_point, with open(os.path.join(root_mount_point,
dmcrypt_conf_path), dmcrypt_conf_path
'a+' ), 'a+') as dmcrypt_file:
) as dmcrypt_file:
dmcrypt_file.write("\ntarget=" + crypto_target) dmcrypt_file.write("\ntarget=" + crypto_target)
dmcrypt_file.write("\nsource=" + crypto_source) dmcrypt_file.write("\nsource=" + crypto_source)
dmcrypt_file.write("\nkey=/crypto_keyfile.bin") dmcrypt_file.write("\nkey=/crypto_keyfile.bin")
@ -50,7 +49,7 @@ def write_dmcrypt_conf(partitions, root_mount_point, dmcrypt_conf_path):
def run(): def run():
""" """
This module configures the OpenRC dmcrypt service for an encrypted This module configures the OpenRC dmcrypt service for an encrypted
/home partition. /home partition.
:return: :return:
""" """