File tree Expand file tree Collapse file tree 1 file changed +2
-28
lines changed
Expand file tree Collapse file tree 1 file changed +2
-28
lines changed Original file line number Diff line number Diff line change @@ -336,41 +336,15 @@ def username(self):
336336 return None # not authenticated
337337 return self ._user_info ["username" ]
338338
339- def user_service (self ):
340- """
341- Requests information about user from /user/service endpoint if such exists in self.url server.
342-
343- Returns response from server as JSON dict or None if endpoint is not found
344- This can be removed once our SaaS server is upgraded to support workspaces
345- """
346-
347- try :
348- response = self .get ("/v1/user/service" )
349- except ClientError as e :
350- self .log .debug ("Unable to query for /user/service endpoint" )
351- return
352-
353- response = json .loads (response .read ())
354-
355- return response
356-
357339 def workspace_service (self , workspace_id ):
358340 """
359341 This Requests information about a workspace service from /workspace/{id}/service endpoint,
360342 if such exists in self.url server.
361343
362344 Returns response from server as JSON dict or None if endpoint is not found
363345 """
364-
365- try :
366- response = self .get (f"/v1/workspace/{ workspace_id } /service" )
367- except ClientError as e :
368- self .log .debug (f"Unable to query for /workspace/{ workspace_id } /service endpoint" )
369- return
370-
371- response = json .loads (response .read ())
372-
373- return response
346+ resp = self .get (f"/v1/workspace/{ workspace_id } /service" )
347+ return json .loads (resp )
374348
375349 def workspace_usage (self , workspace_id ):
376350 """
You can’t perform that action at this time.
0 commit comments