mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 14:41:23 -07:00
Fix issue #793: mysql_db: for state={absent,present} connections to database mysql fail for users other than root
This commit is contained in:
parent
4737b41f26
commit
63e9de3170
1 changed files with 1 additions and 1 deletions
|
@ -312,7 +312,7 @@ def main():
|
||||||
module.fail_json(msg="with state=%s target is required" % (state))
|
module.fail_json(msg="with state=%s target is required" % (state))
|
||||||
connect_to_db = db
|
connect_to_db = db
|
||||||
else:
|
else:
|
||||||
connect_to_db = 'mysql'
|
connect_to_db = ''
|
||||||
try:
|
try:
|
||||||
if socket:
|
if socket:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue