Skip to content

Commit

Permalink
Convert oid expiration timestamp to datetime.datetime (#801)
Browse files Browse the repository at this point in the history
Co-authored-by: DWSR <brandonmcnama@outlook.com>
Co-authored-by: harrisonfritz <myjunkdrawer@gmail.com>
  • Loading branch information
3 people committed Aug 15, 2023
1 parent 3bdccfa commit 00dca20
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dask_kubernetes/common/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,9 @@ async def refresh_oid_token(self):
self.token_expire_ts <= datetime.datetime.now(tz=tzUTC)
):
await self._refresh_oidc(provider)
expires = self.extract_oid_expiration_from_provider(provider=provider)
expires = datetime.datetime.fromtimestamp(
self.extract_oid_expiration_from_provider(provider=provider)
)

await self.create_refresh_task_from_expiration_timestamp(
expiration_timestamp=expires
Expand Down

0 comments on commit 00dca20

Please sign in to comment.