Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
This commit is contained in:
Daniel Girtler 2022-11-16 00:34:24 +11:00 committed by GitHub
parent e05df22986
commit 9718c64ca7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ from .exceptions import RequirementError
def configuration_sanity_check(): def configuration_sanity_check():
disk_encryption: DiskEncryption = storage['arguments'].get('disk_encryption') disk_encryption: DiskEncryption = storage['arguments'].get('disk_encryption')
if disk_encryption.hsm_device: if disk_encryption is not None and disk_encryption.hsm_device:
if not Fido2.get_fido2_devices(): if not Fido2.get_fido2_devices():
raise RequirementError( raise RequirementError(
f"In order to use HSM to pair with the disk encryption," f"In order to use HSM to pair with the disk encryption,"