mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-18 08:21:26 -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')
|
||||
except Exception as e:
|
||||
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 \
|
||||
the credentials. Exception message: {to_native(e)}%s")
|
||||
the credentials. Exception message: {to_native(e)}")
|
||||
|
||||
###############################
|
||||
# Create object and do main job
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue