Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c53e695

Browse filesBrowse files
JohnVillalovosnejch
authored andcommitted
docs: correct rotate token example
Rotate token returns a dict. Change example to print the entire dict. Closes: python-gitlab#2836
1 parent 001e596 commit c53e695
Copy full SHA for c53e695

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎docs/gl_objects/personal_access_tokens.rst‎

Copy file name to clipboardExpand all lines: docs/gl_objects/personal_access_tokens.rst
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.