8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0304ed3 commit 8b06fa2Copy full SHA for 8b06fa2
gitlab/v4/cli.py
@@ -143,8 +143,9 @@ def _populate_sub_parser_by_class(cls, sub_parser):
143
action='store_true')
144
145
if action_name == 'delete':
146
- id_attr = cls._id_attr.replace('_', '-')
147
- sub_parser_action.add_argument("--%s" % id_attr, required=True)
+ if cls._id_attr is not None:
+ id_attr = cls._id_attr.replace('_', '-')
148
+ sub_parser_action.add_argument("--%s" % id_attr, required=True)
149
150
if action_name == "get":
151
if gitlab.mixins.GetWithoutIdMixin not in inspect.getmro(cls):
0 commit comments