Merge pull request #8093 from ghjm/mysql-dbname

Switched primary and alias names of the name/db parameter. Fixes #8065.
This commit is contained in:
James Cammarata 2014-07-11 11:57:20 -05:00
commit 7b58e97881

View file

@ -265,7 +265,7 @@ def main():
login_host=dict(default="localhost"),
login_port=dict(default="3306"),
login_unix_socket=dict(default=None),
db=dict(required=True, aliases=['name']),
name=dict(required=True, aliases=['db']),
encoding=dict(default=""),
collation=dict(default=""),
target=dict(default=None),
@ -276,7 +276,7 @@ def main():
if not mysqldb_found:
module.fail_json(msg="the python mysqldb module is required")
db = module.params["db"]
db = module.params["name"]
encoding = module.params["encoding"]
collation = module.params["collation"]
state = module.params["state"]