From d38813d4182d969ba8a49f9bbe4a52d0e3322fb9 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Tue, 5 Apr 2022 11:31:38 +0200 Subject: [PATCH] mysql_role: remove redundant connection closing (fixes #329) (#330) (#332) * mysql_role: remove redundant connection closing (fixes #329) * add changelog fragment for pull request #330 Co-authored-by: Felix Hamme (cherry picked from commit 641894e6e8fa0c02384e64e7eaaaf5e5e45b82a0) Co-authored-by: betanummeric <40263343+betanummeric@users.noreply.github.com> --- .../329-mysql_role-remove-redudant-connection-closing.yml | 2 ++ plugins/modules/mysql_role.py | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 changelogs/fragments/329-mysql_role-remove-redudant-connection-closing.yml 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)