From d3b9759ef10b5fc47775f58ad6a68b95c390e397 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Tue, 10 Oct 2023 09:06:52 +0200 Subject: [PATCH] [PR #7379/557a4ae6 backport][stable-7] Make compatible with current ansible-core devel (#7381) Make compatible with current ansible-core devel (#7379) Make compatible with current ansible-core devel. (cherry picked from commit 557a4ae653c17afd6e248ed45527a6867e060b4e) Co-authored-by: Felix Fontein --- changelogs/fragments/7379-url.yml | 2 ++ plugins/module_utils/memset.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/7379-url.yml diff --git a/changelogs/fragments/7379-url.yml b/changelogs/fragments/7379-url.yml new file mode 100644 index 0000000000..818f14ed50 --- /dev/null +++ b/changelogs/fragments/7379-url.yml @@ -0,0 +1,2 @@ +bugfixes: + - "memset module utils - make compatible with ansible-core 2.17 (https://github.com/ansible-collections/community.general/pull/7379)." \ No newline at end of file diff --git a/plugins/module_utils/memset.py b/plugins/module_utils/memset.py index 374b40ff44..00c028fb09 100644 --- a/plugins/module_utils/memset.py +++ b/plugins/module_utils/memset.py @@ -14,8 +14,9 @@ from __future__ import (absolute_import, division, print_function) __metaclass__ = type from ansible.module_utils.six.moves.urllib.parse import urlencode -from ansible.module_utils.urls import open_url, urllib_error +from ansible.module_utils.urls import open_url from ansible.module_utils.basic import json +import ansible.module_utils.six.moves.urllib.error as urllib_error class Response(object):