8000 docs: correct rotate token example · python-gitlab/python-gitlab@ad1fe50 · GitHub
[go: up one dir, main page]

Skip to content

Commit ad1fe50

Browse files
JohnVillalovosCristiano Casella
authored andcommitted
docs: correct rotate token example
Rotate token returns a dict. Change example to print the entire dict. Closes: #2836
1 parent d476704 commit ad1fe50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/gl_objects/personal_access_tokens.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ Rotate a personal access token and retrieve its new value::
5858
token.rotate()
5959
print(token.token)
6060
# or directly using a token ID
61-
new_token = gl.personal_access_tokens.rotate(42)
62-
print(new_token.token)
61+
new_token_dict = gl.personal_access_tokens.rotate(42)
62+
print(new_token_dict)
6363

6464
Create a personal access token for a user (admin only)::
6565

0 commit comments

Comments
 (0)
0