summaryrefslogtreecommitdiff
path: root/gitlab/cli.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2016-01-08 22:14:53 +0100
committerGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2016-01-08 22:14:53 +0100
commite48e14948f886a7bb71b22f82d71c2572a09341e (patch)
treec0127e6020e496bb3a494b53575da9f301a7979e /gitlab/cli.py
parente8631c1d505690a04704a9c19ba4a2d8564c6ef4 (diff)
downloadgitlab-e48e14948f886a7bb71b22f82d71c2572a09341e.tar.gz
CLI: fix the discovery of possible actions
Diffstat (limited to 'gitlab/cli.py')
-rw-r--r--gitlab/cli.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/gitlab/cli.py b/gitlab/cli.py
index 1b8356c..53f32af 100644
--- a/gitlab/cli.py
+++ b/gitlab/cli.py
@@ -66,8 +66,7 @@ def clsToWhat(cls):
def populate_sub_parser_by_class(cls, sub_parser):
for action_name in ACTIONS:
attr = 'can' + action_name.capitalize()
- y = getattr(cls, attr) or getattr(gitlab.GitlabObject, attr)
- if not y:
+ if not getattr(cls, attr):
continue
sub_parser_action = sub_parser.add_parser(action_name)
[sub_parser_action.add_argument("--%s" % x.replace('_', '-'),