mysql_user: prevent password getting set for existing users on on_cre… (#342)

Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
(cherry picked from commit 51a38840d9)
This commit is contained in:
hubiongithub 2022-05-31 07:40:32 +02:00 committed by Andrew Klychkov
commit 199b593a3f
2 changed files with 7 additions and 4 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- "mysql_user - fix logic when ``update_password`` is set to ``on_create`` for users using ``plugin*`` arguments (https://github.com/ansible-collections/community.mysql/issues/334). The ``on_create`` sets ``password`` to None for old mysql_native_authentication but not for authentiation methods which uses the ``plugin*`` arguments. This PR changes this so ``on_create`` also exchange ``plugin``, ``plugin_hash_string``, ``plugin_auth_string`` to None in the list of arguments to change"