From 557a4ae653c17afd6e248ed45527a6867e060b4e Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Tue, 10 Oct 2023 07:55:02 +0200 Subject: [PATCH] Make compatible with current ansible-core devel (#7379) Make compatible with current ansible-core devel. --- 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):