Fix a copy/paste issue when detecting the HSM SELinux subpackage

I made a mistake when trying to detect which HSM is being used
to ensure that the appropriate SELinux subpackage is installed.

Fixes: https://pagure.io/freeipa/issue/9636

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
This commit is contained in:
Rob Crittenden 2024-07-18 13:40:28 -04:00
parent 9f88188204
commit fdd471d55c

View File

@ -265,7 +265,7 @@ def hsm_validator(token_name, token_library, token_password):
if 'nfast' in token_library: if 'nfast' in token_library:
module = 'ipa-selinux-nfast' module = 'ipa-selinux-nfast'
elif 'luna' in token_library: elif 'luna' in token_library:
module = 'ipa-selinux-nfast' module = 'ipa-selinux-luna'
else: else:
module = None module = None
if module: if module: