diff options
Diffstat (limited to 'gitlab/v4/cli.py')
-rw-r--r-- | gitlab/v4/cli.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gitlab/v4/cli.py b/gitlab/v4/cli.py index 8ad75ae..4e15642 100644 --- a/gitlab/v4/cli.py +++ b/gitlab/v4/cli.py @@ -80,10 +80,10 @@ class GitlabCLI(object): if gitlab.mixins.GetWithoutIdMixin not in inspect.getmro(self.cls): data[self.cls._id_attr] = self.args.pop(self.cls._id_attr) o = self.cls(self.mgr, data) - method_name = self.action.replace('-', '_') - return getattr(o, method_name)(**self.args) else: - return getattr(self.mgr, self.action)(**self.args) + o = self.mgr + method_name = self.action.replace('-', '_') + return getattr(o, method_name)(**self.args) def do_project_export_download(self): try: |