diff options
author | Gauvain Pocentek <gauvain.pocentek@objectif-libre.com> | 2016-01-24 21:15:22 +0100 |
---|---|---|
committer | Gauvain Pocentek <gauvain.pocentek@objectif-libre.com> | 2016-01-24 21:15:22 +0100 |
commit | e5438c6440a2477c796427bc598b2b31b10dc762 (patch) | |
tree | d0a4388e15073a65feb41f497ff8b160c3f23f17 /gitlab/cli.py | |
parent | c11bebd83dd0ef89645e1eefce2aa107dd79180a (diff) | |
download | gitlab-e5438c6440a2477c796427bc598b2b31b10dc762.tar.gz |
Implement project variables support
Diffstat (limited to 'gitlab/cli.py')
-rw-r--r-- | gitlab/cli.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gitlab/cli.py b/gitlab/cli.py index c2b2fa5..8ac8e45 100644 --- a/gitlab/cli.py +++ b/gitlab/cli.py @@ -89,7 +89,7 @@ def _populate_sub_parser_by_class(cls, sub_parser): required=True) [sub_parser_action.add_argument("--%s" % x.replace('_', '-'), required=True) - for x in cls.requiredGetAttrs] + for x in cls.requiredGetAttrs if x != cls.idAttr] elif action_name == CREATE: [sub_parser_action.add_argument("--%s" % x.replace('_', '-'), @@ -109,7 +109,7 @@ def _populate_sub_parser_by_class(cls, sub_parser): else cls.requiredCreateAttrs) [sub_parser_action.add_argument("--%s" % x.replace('_', '-'), required=True) - for x in attrs] + for x in attrs if x != cls.idAttr] attrs = (cls.optionalUpdateAttrs if cls.optionalUpdateAttrs is not None |