Skip to content

Doc issue? [global] api_version seems having no effect #421

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

Closed
askorski-fc opened this issue Jan 30, 2018 · 0 comments
Closed

Doc issue? [global] api_version seems having no effect #421

askorski-fc opened this issue Jan 30, 2018 · 0 comments

Comments

@askorski-fc
Copy link

askorski-fc commented Jan 30, 2018

The CLI usage documentation provides the following .python-gitlab.cfg file example:

[global]
...
api_version = 3

[somewhere]
...
api_version = 4

...

However, the api_version option in the [global] section seems having no effect.

with [global] api_version = 3:

user@machine:~$ gitlab -d project list
...
DEBUG:urllib3.connectionpool:https:/<host>:443 "GET /api/v3/projects HTTP/1.1" 200 None
...

with [global] api_version = 4: the result is the same, it uses v3 endpoints

FYI:

user@machine:~$ pip freeze | grep gitlab
python-gitlab==1.2.0
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants