Fix dict key lookup

This commit is contained in:
Laurent Indermuehle 2023-01-20 18:44:01 +01:00
parent 20965d2fa2
commit 6399f249ae
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09

View file

@ -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