-
Notifications
You must be signed in to change notification settings - Fork 644
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
personal_access_tokens.rotate(<ID>) 'dict' object has no attribute 'token' #2836
Labels
Comments
It is a dictionary thus access is not done via attributes. |
We might need to update the docs there a bit. new_token = gl.personal_access_tokens.rotate(1630)
print(new_token["token"]) |
Thanks for the clarification. |
JohnVillalovos
added a commit
that referenced
this issue
Apr 5, 2024
Rotate token returns a dict. Change example to print the entire dict. Closes: #2836
2 tasks
nejch
pushed a commit
that referenced
this issue
Apr 5, 2024
Rotate token returns a dict. Change example to print the entire dict. Closes: #2836
cristianocasella
pushed a commit
to cristianocasella/python-gitlab
that referenced
this issue
Apr 10, 2024
Rotate token returns a dict. Change example to print the entire dict. Closes: python-gitlab#2836
TimKnight-DWP
pushed a commit
to TimKnight-DWP/python-gitlab
that referenced
this issue
Apr 24, 2024
Rotate token returns a dict. Change example to print the entire dict. Closes: python-gitlab#2836
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description of the problem, including code/CLI snippet
When using this labrary to rotate a personal access token, there is no token attribute to the resulting dict object.
Expected Behavior
That the new token is present in the object.
Actual Behavior
Taken from:
https://python-gitlab.readthedocs.io/en/stable/gl_objects/personal_access_tokens.html
Specifications
The text was updated successfully, but these errors were encountered: