mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-21 18:01:28 -07:00
Fix dict key lookup
This commit is contained in:
parent
20965d2fa2
commit
6399f249ae
1 changed files with 2 additions and 2 deletions
|
@ -572,9 +572,9 @@ def main():
|
||||||
connect_timeout=connect_timeout, cursor_class='DictCursor')
|
connect_timeout=connect_timeout, cursor_class='DictCursor')
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
module.fail_json(msg=f"unable to connect to database using \
|
module.fail_json(msg=f"unable to connect to database using \
|
||||||
{mysql_driver_info.name} {mysql_driver_info.version}, \
|
{mysql_driver_info.get('name')} {mysql_driver_info.get('version')}, \
|
||||||
check login_user and login_password are correct or {config_file} has \
|
check login_user and login_password are correct or {config_file} has \
|
||||||
the credentials. Exception message: {to_native(e)}%s")
|
the credentials. Exception message: {to_native(e)}")
|
||||||
|
|
||||||
###############################
|
###############################
|
||||||
# Create object and do main job
|
# Create object and do main job
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue