We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adb6305 commit 6158fd2Copy full SHA for 6158fd2
gitlab/v4/cli.py
@@ -80,10 +80,10 @@ def do_custom(self):
80
if gitlab.mixins.GetWithoutIdMixin not in inspect.getmro(self.cls):
81
data[self.cls._id_attr] = self.args.pop(self.cls._id_attr)
82
o = self.cls(self.mgr, data)
83
- method_name = self.action.replace('-', '_')
84
- return getattr(o, method_name)(**self.args)
85
else:
86
- return getattr(self.mgr, self.action)(**self.args)
+ o = self.mgr
+ method_name = self.action.replace('-', '_')
+ return getattr(o, method_name)(**self.args)
87
88
def do_project_export_download(self):
89
try:
0 commit comments