From da8023b4d777a425abbee17acb41dc5228eb74c3 Mon Sep 17 00:00:00 2001 From: Jeny Sadadia Date: Fri, 13 Oct 2023 18:06:38 +0530 Subject: [PATCH] src/timeout: update logic to get username of current user Since the user schema has been changed in the API, update the logic to get `username` in `timeout` service. Signed-off-by: Jeny Sadadia --- src/timeout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timeout.py b/src/timeout.py index 7e0a2e244..cc48090ed 100755 --- a/src/timeout.py +++ b/src/timeout.py @@ -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 {