Skip to content

Commit ddd6de3

Browse files
Moving to 1.7.2 with a fix in TSRestApiV1.group_users_post() to handle response correctly
1 parent 4b2419e commit ddd6de3

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = thoughtspot_rest_api_v1
3-
version = 1.7.1
3+
version = 1.7.2
44
description = Library implementing the ThoughtSpot V1 REST API
55
long_description = file: README.md
66
long_description_content_type = text/markdown
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.7.1'
1+
__version__ = '1.7.2'

src/thoughtspot_rest_api_v1/tsrestapiv1.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,8 @@ def group_users_post(self, group_guid: str, user_guids: List[str]):
630630
url = self.base_url + endpoint
631631
response = self.requests_session.post(url=url, params=url_params)
632632
response.raise_for_status()
633-
return response.json()
633+
# Return is a 204 with no response body
634+
return True
634635

635636
def group_users_delete(self, group_guid: str, user_guids: List[str]):
636637
endpoint = 'group/{}/users'.format(group_guid)

0 commit comments

Comments
 (0)