Skip to content

Commit

Permalink
Update plugins/module_utils/user.py
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
  • Loading branch information
hubiongithub and Andersson007 committed Sep 9, 2024
1 parent 25f7c1c commit b038683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/module_utils/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def user_add(cursor, user, host, host_all, password, encrypted,
# Mysql and MariaDB differ in naming pam plugin and Syntax to set it
if plugin == 'pam': # Used by MariaDB which requires the USING keyword, not BY
query_with_args = "CREATE USER %s@%s IDENTIFIED WITH %s USING %s", (user, host, plugin, plugin_auth_string)
elif plugin in ('ed25519'): # Used by MariaDB which requires the USING keyword, not BY
elif plugin == 'ed25519': # Used by MariaDB which requires the USING keyword, not BY
query_with_args = "CREATE USER %s@%s IDENTIFIED WITH %s USING PASSWORD(%s)", (user, host, plugin, plugin_auth_string)

Check warning on line 218 in plugins/module_utils/user.py

View check run for this annotation

Codecov / codecov/patch

plugins/module_utils/user.py#L218

Added line #L218 was not covered by tests
elif salt:
if plugin in ['caching_sha2_password', 'sha256_password']:
Expand Down

0 comments on commit b038683

Please sign in to comment.