summaryrefslogtreecommitdiff
path: root/gitlab/cli.py
diff options
context:
space:
mode:
authorJohn L. Villalovos <john@sodarock.com>2021-02-25 10:54:14 -0800
committerJohn L. Villalovos <john@sodarock.com>2021-02-25 10:54:14 -0800
commit15ec41caf74e264d757d2c64b92427f027194b82 (patch)
treecacbe59440ca3855b9a86dc6ce04fee8921eda24 /gitlab/cli.py
parent0b67ca29d2cc6177e330b91519fdf54b05621769 (diff)
downloadgitlab-15ec41caf74e264d757d2c64b92427f027194b82.tar.gz
fix: wrong variable name
Discovered this when I ran flake8 on the file. Unfortunately I was the one who introduced this wrong variable name :(
Diffstat (limited to 'gitlab/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)