CI: Fix sanity errors (#668)

This commit is contained in:
Andrew Klychkov 2024-08-29 08:47:48 +02:00 committed by GitHub
parent 37a718c66f
commit 87be61ccf3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 2 additions and 4 deletions

View file

@ -393,6 +393,7 @@ def user_mod(cursor, user, host, host_all, password, encrypted,
update = True update = True
if update: if update:
query_with_args = None
if plugin_hash_string: if plugin_hash_string:
query_with_args = "ALTER USER %s@%s IDENTIFIED WITH %s AS %s", (user, host, plugin, plugin_hash_string) query_with_args = "ALTER USER %s@%s IDENTIFIED WITH %s AS %s", (user, host, plugin, plugin_hash_string)
elif plugin_auth_string: elif plugin_auth_string:

View file

@ -20,6 +20,7 @@ options:
- Name of the user (role) to add or remove. - Name of the user (role) to add or remove.
type: str type: str
required: true required: true
aliases: ['user']
password: password:
description: description:
- Set the user's password. Only for C(mysql_native_password) authentication. - Set the user's password. Only for C(mysql_native_password) authentication.

View file

@ -1,4 +1,3 @@
plugins/modules/mysql_db.py validate-modules:use-run-command-not-popen plugins/modules/mysql_db.py validate-modules:use-run-command-not-popen
plugins/modules/mysql_user.py validate-modules:undocumented-parameter
plugins/module_utils/mysql.py pylint:unused-import plugins/module_utils/mysql.py pylint:unused-import
plugins/module_utils/version.py pylint:unused-import plugins/module_utils/version.py pylint:unused-import

View file

@ -1,4 +1,3 @@
plugins/modules/mysql_db.py validate-modules:use-run-command-not-popen plugins/modules/mysql_db.py validate-modules:use-run-command-not-popen
plugins/modules/mysql_user.py validate-modules:undocumented-parameter
plugins/module_utils/mysql.py pylint:unused-import plugins/module_utils/mysql.py pylint:unused-import
plugins/module_utils/version.py pylint:unused-import plugins/module_utils/version.py pylint:unused-import

View file

@ -1,4 +1,3 @@
plugins/modules/mysql_db.py validate-modules:use-run-command-not-popen plugins/modules/mysql_db.py validate-modules:use-run-command-not-popen
plugins/modules/mysql_user.py validate-modules:undocumented-parameter
plugins/module_utils/mysql.py pylint:unused-import plugins/module_utils/mysql.py pylint:unused-import
plugins/module_utils/version.py pylint:unused-import plugins/module_utils/version.py pylint:unused-import

View file

@ -1,4 +1,3 @@
plugins/modules/mysql_db.py validate-modules:use-run-command-not-popen plugins/modules/mysql_db.py validate-modules:use-run-command-not-popen
plugins/modules/mysql_user.py validate-modules:undocumented-parameter
plugins/module_utils/mysql.py pylint:unused-import plugins/module_utils/mysql.py pylint:unused-import
plugins/module_utils/version.py pylint:unused-import plugins/module_utils/version.py pylint:unused-import