diff options
author | Karol Ossowski <karol.ossowski@gmail.com> | 2019-04-24 11:59:22 +0200 |
---|---|---|
committer | Karol Ossowski <karol.ossowski@gmail.com> | 2019-04-24 11:59:22 +0200 |
commit | 6158fd23022b2e2643b6da7a39708b28ce59270a (patch) | |
tree | cb48df078f6381b0f3b884260c74b4f380469dbc /gitlab/v4/cli.py | |
parent | adb63054add31e06cefec09982a02b1cd21c2cbd (diff) | |
download | gitlab-6158fd23022b2e2643b6da7a39708b28ce59270a.tar.gz |
fix -/_ replacament for *Manager custom actions
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: |