diff --git a/changelogs/fragments/329-mysql_role-remove-redudant-connection-closing.yml b/changelogs/fragments/329-mysql_role-remove-redudant-connection-closing.yml new file mode 100644 index 0000000..8035b32 --- /dev/null +++ b/changelogs/fragments/329-mysql_role-remove-redudant-connection-closing.yml @@ -0,0 +1,2 @@ +bugfixes: + - "mysql_role - remove redundant connection closing (https://github.com/ansible-collections/community.mysql/pull/330)." diff --git a/plugins/modules/mysql_role.py b/plugins/modules/mysql_role.py index 367692f..557ceac 100644 --- a/plugins/modules/mysql_role.py +++ b/plugins/modules/mysql_role.py @@ -1059,8 +1059,6 @@ def main(): except Exception as e: module.fail_json(msg=to_native(e)) - # Exit - db_conn.close() module.exit_json(changed=changed)