Skip to content

Commit

Permalink
src/timeout: update logic to get username of current user
Browse files Browse the repository at this point in the history
Since the user schema has been changed in the API,
update the logic to get `username` in `timeout` service.

Signed-off-by: Jeny Sadadia <[email protected]>
  • Loading branch information
Jeny Sadadia authored and nuclearcat committed Nov 23, 2023
1 parent 6e42a16 commit da8023b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/timeout.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __init__(self, configs, args, name):
if state != state.DONE
]
self._user = self._api.whoami()
self._username = self._user['profile']['username']
self._username = self._user['username']

def _setup(self, args):
return {
Expand Down

0 comments on commit da8023b

Please sign in to comment.