summaryrefslogtreecommitdiffstats
path: root/ansible_collections/cisco/dnac/plugins/action/user.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-18 05:52:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-18 05:52:35 +0000
commit7fec0b69a082aaeec72fee0612766aa42f6b1b4d (patch)
treeefb569b86ca4da888717f5433e757145fa322e08 /ansible_collections/cisco/dnac/plugins/action/user.py
parentReleasing progress-linux version 7.7.0+dfsg-3~progress7.99u1. (diff)
downloadansible-7fec0b69a082aaeec72fee0612766aa42f6b1b4d.tar.xz
ansible-7fec0b69a082aaeec72fee0612766aa42f6b1b4d.zip
Merging upstream version 9.4.0+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/cisco/dnac/plugins/action/user.py')
-rw-r--r--ansible_collections/cisco/dnac/plugins/action/user.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/ansible_collections/cisco/dnac/plugins/action/user.py b/ansible_collections/cisco/dnac/plugins/action/user.py
index b9c8d5c4e..1896e57ff 100644
--- a/ansible_collections/cisco/dnac/plugins/action/user.py
+++ b/ansible_collections/cisco/dnac/plugins/action/user.py
@@ -91,8 +91,8 @@ class User(object):
# NOTE: Does not have a get by name method, using get all
try:
items = self.dnac.exec(
- family="userand_roles",
- function="get_users_ap_i",
+ family="user_and_roles",
+ function="get_users_api",
params=self.get_all_params(name=name),
)
if isinstance(items, dict):
@@ -148,8 +148,8 @@ class User(object):
def create(self):
result = self.dnac.exec(
- family="userand_roles",
- function="add_user_ap_i",
+ family="user_and_roles",
+ function="add_user_api",
params=self.create_params(),
op_modifies=True,
)
@@ -160,8 +160,8 @@ class User(object):
name = self.new_object.get("name")
result = None
result = self.dnac.exec(
- family="userand_roles",
- function="update_user_ap_i",
+ family="user_and_roles",
+ function="update_user_api",
params=self.update_all_params(),
op_modifies=True,
)