Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use utilities/whoami endpoint from FirecREST, when possible, to determine the username #60

Merged
merged 2 commits into from
Jul 17, 2023

Conversation

ekouts
Copy link
Collaborator

@ekouts ekouts commented Jul 7, 2023

We cannot get rid of the pyjwt dependency immediately because the old whoami method of pyfirecrest used to take no argument, but the utilities/whoami endpoint of firecrest needs the machine name.
In order to not break compatibility, it makes a request when the machine is given and still uses the pyjwt library otherwise.

@ekouts ekouts requested a review from aledabin July 7, 2023 15:54
@ekouts ekouts self-assigned this Jul 7, 2023
@ekouts ekouts marked this pull request as ready for review July 11, 2023 14:23
@ekouts ekouts changed the title Use whoami endpoint from firecrest, when possible, to determine the username Use utilities/whoami endpoint from firecrest, when possible, to determine the username Jul 11, 2023
@ekouts ekouts changed the title Use utilities/whoami endpoint from firecrest, when possible, to determine the username Use utilities/whoami endpoint from FirecREST, when possible, to determine the username Jul 11, 2023
Copy link
Collaborator

@aledabin aledabin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ekouts ekouts merged commit 08a5059 into eth-cscs:main Jul 17, 2023
5 checks passed
@ekouts ekouts deleted the whoami branch July 17, 2023 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants