Skip to content

Commit

Permalink
corrected method name
Browse files Browse the repository at this point in the history
group_services_assigned changed to group_services_user_assigned inline with online docs.

This also had to be updated in group_audit() as its used in that script.
  • Loading branch information
Jordan-Prescott committed Jul 26, 2024
1 parent 6c2fae2 commit 42ef225
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion odins_spear/methods/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -1248,7 +1248,7 @@ def group_services(self, group_id: str, service_provider_id: str):

return self.requester.get(endpoint, params=params)

def group_services_assigned(self, group_id: str, service_provider_id: str, service_name: str, service_type: str):
def group_services_user_assigned(self, group_id: str, service_provider_id: str, service_name: str, service_type: str):
"""
Get details of the user/service instances where a particular service is assigned.
Expand Down
4 changes: 2 additions & 2 deletions odins_spear/scripts/group_audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def main(api, service_provider_id: str, group_id: str):
del us["tags"]
del us["alias"]

users = api.get.group_services_assigned(
users = api.get.group_services_user_assigned(
group_id, service_provider_id, us["serviceName"], "serviceName")
userIDs = [u["userId"] for u in users["users"]]
us["users"] = userIDs
Expand Down Expand Up @@ -62,7 +62,7 @@ def main(api, service_provider_id: str, group_id: str):
del sps["quantity"]
del sps["alias"]

users = api.get.group_services_assigned(
users = api.get.group_services_user_assigned(
group_id, service_provider_id, sps["servicePackName"], "servicePackName")
userIDs = [u["userId"] for u in users["users"]]
sps["users"] = userIDs
Expand Down

0 comments on commit 42ef225

Please sign in to comment.