Skip to content

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

Closed
@askorski-fc

Description

@askorski-fc

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions