diff --git a/plugins/modules/ipavault.py b/plugins/modules/ipavault.py index 6a3c73e8af0b32bf58a01d36d58508c8228e5bba..8562ff722238a991bfbeeaf86402136f2439af5b 100644 --- a/plugins/modules/ipavault.py +++ b/plugins/modules/ipavault.py @@ -494,8 +494,10 @@ def check_encryption_params(module, state, action, vault_type, salt, new_password, new_password_file, res_find): vault_type_invalid = [] - if res_find is not None: + if vault_type is None and res_find is not None: vault_type = res_find['ipavaulttype'] + if isinstance(vault_type, (tuple, list)): + vault_type = vault_type[0] if vault_type == "standard": vault_type_invalid = ['public_key', 'public_key_file', 'password',