From 0e1c548f29d57d35da1ec411332dbfe19abc2a25 Mon Sep 17 00:00:00 2001 From: fmunoz Date: Tue, 28 Nov 2023 17:12:00 -0600 Subject: [PATCH 1/2] Adding member_type to `tag_member` #125 --- plugins/action/tag_member.py | 10 +++++++--- plugins/modules/tag_member.py | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/plugins/action/tag_member.py b/plugins/action/tag_member.py index e92fdf5052..54ae99e177 100644 --- a/plugins/action/tag_member.py +++ b/plugins/action/tag_member.py @@ -54,6 +54,7 @@ def __init__(self, params, dnac): object=params.get("object"), id=params.get("id"), member_id=params.get("memberId"), + member_type=params.get("memberType"), ) def create_params(self): @@ -81,7 +82,8 @@ def get_object_by_id(self, id): items = self.dnac.exec( family="tag", function="get_tag_members_by_id", - params={"id": id} + params={"id": id, "memberType": self.new_object.get( + 'member_type'), } ) if isinstance(items, dict): if 'response' in items: @@ -108,7 +110,8 @@ def exists(self): _id = prev_obj.get("id") _id = _id or prev_obj.get("memberId") if id_exists and name_exists and o_id != _id: - raise InconsistentParameters("The 'id' and 'name' params don't refer to the same object") + raise InconsistentParameters( + "The 'id' and 'name' params don't refer to the same object") if _id: self.new_object.update(dict(id=_id)) self.new_object.update(dict(member_id=_id)) @@ -164,7 +167,8 @@ def delete(self): class ActionModule(ActionBase): def __init__(self, *args, **kwargs): if not ANSIBLE_UTILS_IS_INSTALLED: - raise AnsibleActionFail("ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'") + raise AnsibleActionFail( + "ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'") super(ActionModule, self).__init__(*args, **kwargs) self._supports_async = False self._supports_check_mode = False diff --git a/plugins/modules/tag_member.py b/plugins/modules/tag_member.py index 528caf3017..017fd1c232 100644 --- a/plugins/modules/tag_member.py +++ b/plugins/modules/tag_member.py @@ -79,6 +79,7 @@ state: absent id: string memberId: string + memberType: string """ From b156d8b5018d0f7947dac4ff51d8f7b81b1547b3 Mon Sep 17 00:00:00 2001 From: fmunoz Date: Mon, 4 Dec 2023 12:07:49 -0600 Subject: [PATCH 2/2] 6.8.2: release_date: "2023-12-04" changes: release_summary: Changing galaxy. bugfixes: - Adding support to ansible.utils >=3.0 Issue #133 --- changelogs/changelog.yaml | 6 ++++++ galaxy.yml | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml index f5f3eb12cc..5e9cd47aab 100644 --- a/changelogs/changelog.yaml +++ b/changelogs/changelog.yaml @@ -736,3 +736,9 @@ releases: minor_changes: - Fixed issues in Swim intent module. - Updated docstring in site intent and template intent modules. + 6.8.2: + release_date: "2023-12-04" + changes: + release_summary: Changing galaxy. + bugfixes: + - Adding support to ansible.utils >=3.0 diff --git a/galaxy.yml b/galaxy.yml index e8d6c08389..4661cd1705 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -1,7 +1,7 @@ --- namespace: cisco name: dnac -version: 6.8.1 +version: 6.8.2 readme: README.md authors: - Rafael Campos @@ -21,7 +21,7 @@ tags: - networking - sdn dependencies: - ansible.utils: ">=2.0.0,<3.0" + ansible.utils: ">=3.0" repository: https://github.com/cisco-en-programmability/dnacenter-ansible documentation: https://cisco-en-programmability.github.io/dnacenter-ansible/ homepage: https://github.com/cisco-en-programmability/dnacenter-ansible