summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2021-02-25 22:33:54 +0100
committerGitHub <noreply@github.com>2021-02-25 22:33:54 +0100
commit665c0c3f1bd2c3bc0c65d4a2f51d25900cf6fed2 (patch)
treecacbe59440ca3855b9a86dc6ce04fee8921eda24
parent0b67ca29d2cc6177e330b91519fdf54b05621769 (diff)
parent15ec41caf74e264d757d2c64b92427f027194b82 (diff)
downloadgitlab-665c0c3f1bd2c3bc0c65d4a2f51d25900cf6fed2.tar.gz
Merge pull request #1332 from JohnVillalovos/jlvillal/fix_variable
chore: fix wrong variable name in cli.py
-rw-r--r--gitlab/cli.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/cli.py b/gitlab/cli.py
index 3a315a8..485bbbb 100644
--- a/gitlab/cli.py
+++ b/gitlab/cli.py
@@ -188,7 +188,7 @@ def main():
sys.exit(e)
# We only support v4 API at this time
if config.api_version not in ("4",):
- raise ModuleNotFoundError(name="gitlab.v%s.cli" % self._api_version)
+ raise ModuleNotFoundError(name="gitlab.v%s.cli" % config.api_version)
# Now we build the entire set of subcommands and do the complete parsing
parser = _get_parser(gitlab.v4.cli)