diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2018-03-02 18:21:23 +0100 |
---|---|---|
committer | Gauvain Pocentek <gauvain@pocentek.net> | 2018-03-02 18:21:23 +0100 |
commit | e65dfa30f9699292ffb911511ecd7c347a03775c (patch) | |
tree | b73f2300664a92c6c8abbe9753cfa8d7f6af770e /gitlab/v4/cli.py | |
parent | 5e27bc4612117abcc8d507f3201c28ea4a0c53a4 (diff) | |
download | gitlab-e65dfa30f9699292ffb911511ecd7c347a03775c.tar.gz |
[cli] _id_attr is required on creation
Diffstat (limited to 'gitlab/v4/cli.py')
-rw-r--r-- | gitlab/v4/cli.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gitlab/v4/cli.py b/gitlab/v4/cli.py index 71abd3c..cd513f0 100644 --- a/gitlab/v4/cli.py +++ b/gitlab/v4/cli.py @@ -154,11 +154,11 @@ def _populate_sub_parser_by_class(cls, sub_parser): if hasattr(mgr_cls, '_create_attrs'): [sub_parser_action.add_argument("--%s" % x.replace('_', '-'), required=True) - for x in mgr_cls._create_attrs[0] if x != cls._id_attr] + for x in mgr_cls._create_attrs[0]] [sub_parser_action.add_argument("--%s" % x.replace('_', '-'), required=False) - for x in mgr_cls._create_attrs[1] if x != cls._id_attr] + for x in mgr_cls._create_attrs[1]] if action_name == "update": if cls._id_attr is not None: |