From e5438c6440a2477c796427bc598b2b31b10dc762 Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Sun, 24 Jan 2016 21:15:22 +0100 Subject: Implement project variables support --- gitlab/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gitlab/cli.py') 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 -- cgit v1.2.1