Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
get token
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilkp93 committed Apr 11, 2024
1 parent ec80813 commit ea16f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion catalystwan/api/admin_tech_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def _wait_for_file_ready(self, filename: str, timeout: int = 3600, interval: int
def _get_token_id(self, filename: str) -> str:
admin_techs = self.get_all()
for admin_tech in admin_techs:
if filename == admin_tech.filename:
if filename == admin_tech.filename and admin_tech.state == "done":
return admin_tech.token_id
raise RequestTokenIdNotFound(
f"requestTokenId of admin tech generation request not found for file name: {filename}"
Expand Down

0 comments on commit ea16f46

Please sign in to comment.