Skip to content

Commit

Permalink
Merge pull request #136 from cisco-en-programmability/develop
Browse files Browse the repository at this point in the history
Develop v.6.8.2
  • Loading branch information
fmunozmiranda authored Dec 4, 2023
2 parents a2cc158 + b156d8b commit 3910994
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
6 changes: 6 additions & 0 deletions changelogs/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions galaxy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
namespace: cisco
name: dnac
version: 6.8.1
version: 6.8.2
readme: README.md
authors:
- Rafael Campos <[email protected]>
Expand All @@ -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
Expand Down
10 changes: 7 additions & 3 deletions plugins/action/tag_member.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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:
Expand All @@ -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))
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/tag_member.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
state: absent
id: string
memberId: string
memberType: string
"""

Expand Down

0 comments on commit 3910994

Please sign in to comment.