Skip to content

Commit

Permalink
Update clients/python/src/model_registry/_utils.py
Browse files Browse the repository at this point in the history
Signed-off-by: Isabella Basso <isabellabdoamaral@gmail.com>
  • Loading branch information
isinyaaa authored Sep 25, 2024
1 parent 92b96f1 commit 3b3b124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/python/src/model_registry/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def try_get(
self, op: t.Callable[[], t.Any], as_user: bool = False
) -> Result[t.Any, client.ApiException]:
if as_user and self.user_token is not None:
# NOTE: even though this config is consumed by the RESTClient, auth is refresh on every request: https://github.com/kubernetes-client/python/blob/b7ccf179f1b0194a0ed18e39fb063ef8a963fc6b/kubernetes/client/api_client.py#L166
# NOTE: even though this config is consumed by the RESTClient, auth is refreshed on every request: https://github.com/kubernetes-client/python/blob/b7ccf179f1b0194a0ed18e39fb063ef8a963fc6b/kubernetes/client/api_client.py#L166
self.api_client.configuration.api_key["authorization"] = self.user_token
try:
return Result(op(), None)
Expand Down

0 comments on commit 3b3b124

Please sign in to comment.