summaryrefslogtreecommitdiff
path: root/gitlab/v4/cli.py
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2021-05-15 12:10:45 +0200
committerNejc Habjan <hab.nejc@gmail.com>2021-05-15 12:10:45 +0200
commit42520705a97289ac895a6b110d34d6c115e45500 (patch)
tree7304a61559b4e309acf3d5eede4e2eadb9c7e745 /gitlab/v4/cli.py
parentf35c73e50918e4d55b70323669f394e52e75cde9 (diff)
downloadgitlab-42520705a97289ac895a6b110d34d6c115e45500.tar.gz
fix(cli): fix parsing CLI objects to classnames
Diffstat (limited to 'gitlab/v4/cli.py')
-rw-r--r--gitlab/v4/cli.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gitlab/v4/cli.py b/gitlab/v4/cli.py
index 42b94aa..a84a6a9 100644
--- a/gitlab/v4/cli.py
+++ b/gitlab/v4/cli.py
@@ -28,8 +28,8 @@ import gitlab.v4.objects
class GitlabCLI(object):
def __init__(self, gl, what, action, args):
- self.cls_name = cli.what_to_cls(what)
- self.cls = gitlab.v4.objects.__dict__[self.cls_name]
+ self.cls = cli.what_to_cls(what, namespace=gitlab.v4.objects)
+ self.cls_name = self.cls.__name__
self.what = what.replace("-", "_")
self.action = action.lower()
self.gl = gl