summaryrefslogtreecommitdiff
path: root/gitlab/config.py
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2021-02-12 00:47:32 +0100
committerNejc Habjan <hab.nejc@gmail.com>2022-01-02 22:11:02 +0100
commit1158be306414a24dc9945e3c0ce1541a304bae82 (patch)
tree3597e79d38ad47a0841c5a773950897863a87490 /gitlab/config.py
parente19e4d7cdf9cd04359cd3e95036675c81f4e1dc5 (diff)
downloadgitlab-feat/merge-cli-env-file-config.tar.gz
feat(cli): allow options from args and environment variablesfeat/merge-cli-env-file-config
BREAKING-CHANGE: The gitlab CLI will now accept CLI arguments and environment variables for its global options in addition to configuration file options. This may change behavior for some workflows such as running inside GitLab CI and with certain environment variables configured.
Diffstat (limited to 'gitlab/config.py')
-rw-r--r--gitlab/config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gitlab/config.py b/gitlab/config.py
index 154f063..c11a4e9 100644
--- a/gitlab/config.py
+++ b/gitlab/config.py
@@ -23,7 +23,7 @@ from os.path import expanduser, expandvars
from pathlib import Path
from typing import List, Optional, Union
-from gitlab.const import DEFAULT_URL, USER_AGENT
+from gitlab.const import USER_AGENT
_DEFAULT_FILES: List[str] = [
"/etc/python-gitlab.cfg",
@@ -119,7 +119,7 @@ class GitlabConfigParser(object):
self.retry_transient_errors: bool = False
self.ssl_verify: Union[bool, str] = True
self.timeout: int = 60
- self.url: str = DEFAULT_URL
+ self.url: Optional[str] = None
self.user_agent: str = USER_AGENT
self._files = _get_config_files(config_files)