diff options
Diffstat (limited to 'gitlab/v4/cli.py')
-rw-r--r-- | gitlab/v4/cli.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gitlab/v4/cli.py b/gitlab/v4/cli.py index 6172f93..a768999 100644 --- a/gitlab/v4/cli.py +++ b/gitlab/v4/cli.py @@ -42,9 +42,8 @@ class GitlabCLI(object): self.mgr_cls._path = self.mgr_cls._path % self.args self.mgr = self.mgr_cls(gl) - types = getattr(self.mgr_cls, "_types", {}) - if types: - for attr_name, type_cls in types.items(): + if self.mgr_cls._types: + for attr_name, type_cls in self.mgr_cls._types.items(): if attr_name in self.args.keys(): obj = type_cls() obj.set_from_cli(self.args[attr_name]) |