-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed put.group_hunt_group method #80
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -897,10 +897,10 @@ def group_hunt_groups_status(self, hunt_group_user_ids: list, status: bool =True | |
|
||
|
||
def group_hunt_group(self, service_provider_id: str, group_id: str, hunt_group_user_id: str, updates: dict): | ||
"""Update a Hunt Groups (HG) settings. | ||
"""Update a Hunt Group's (HG) settings. | ||
|
||
Args: | ||
hunt_group_user_id (str): Service provider ID of where the group that hosts the HG is located. | ||
service_provider_id (str): Service provider ID of where the group that hosts the HG is located. | ||
group_id (str): Group ID of where the HG is located. | ||
service_user_id (str): Target service user ID of the HG. | ||
updates (dict): Updates to be applied to HG. | ||
|
@@ -913,7 +913,8 @@ def group_hunt_group(self, service_provider_id: str, group_id: str, hunt_group_u | |
|
||
updates["serviceProviderId"] = service_provider_id | ||
updates["groupId"] = group_id | ||
updates["serviceUserId"] = hunt_group_user_id | ||
updates["serviceUserId"] = hunt_group_user_id | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should match new argument There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done :) |
||
updates["serviceInstanceProfile"] = {} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Check if this is in the updates otherwise here you will override it There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done :) |
||
|
||
return self.requester.put(endpoint, data=updates) | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change hunt_group_user_id to service_user_id in these args.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done :)