[ci skip] handle change

This commit is contained in:
Matthieu Bourgain 2024-04-22 18:26:51 +02:00
commit 51f2c05ea4
No known key found for this signature in database
GPG key ID: 33BA95C808890C39
2 changed files with 11 additions and 5 deletions

View file

@ -517,8 +517,10 @@ def main():
should be positive number")
if salt:
if not plugin_auth_string:
module.fail_json(msg="salt requires plugin_auth_string")
if len(salt) != 20:
module.fail_json(msg="Salt must be 20 characters long")
module.fail_json(msg="salt must be 20 characters long")
if plugin not in ['caching_sha2_password', 'sha256_password']:
module.fail_json(msg="salt requires caching_sha2_password or sha256_password plugin")