mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-18 16:31:26 -07:00
mysql_user: deprecate alias user for name argument (#670)
* mysql_user: deprecate alias user for name argument * Fix module and tests
This commit is contained in:
parent
0de9685cf1
commit
59c26211ca
4 changed files with 16 additions and 8 deletions
|
@ -439,7 +439,13 @@ from ansible.module_utils._text import to_native
|
|||
def main():
|
||||
argument_spec = mysql_common_argument_spec()
|
||||
argument_spec.update(
|
||||
user=dict(type='str', required=True, aliases=['name']),
|
||||
name=dict(type='str', required=True, aliases=['user'], deprecated_aliases=[
|
||||
{
|
||||
'name': 'user',
|
||||
'version': '5.0.0',
|
||||
'collection_name': 'community.mysql',
|
||||
}],
|
||||
),
|
||||
password=dict(type='str', no_log=True),
|
||||
encrypted=dict(type='bool', default=False),
|
||||
host=dict(type='str', default='localhost'),
|
||||
|
@ -471,7 +477,7 @@ def main():
|
|||
)
|
||||
login_user = module.params["login_user"]
|
||||
login_password = module.params["login_password"]
|
||||
user = module.params["user"]
|
||||
user = module.params["name"]
|
||||
password = module.params["password"]
|
||||
encrypted = module.boolean(module.params["encrypted"])
|
||||
host = module.params["host"].lower()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue