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 8ace76a commit a8f4c23Copy full SHA for a8f4c23
gitlab/mixins.py
@@ -331,6 +331,7 @@ class UpdateMixin(_RestManagerBase):
331
_parent = Optional[base.RESTObject]
332
_parent_attrs = Dict[str, Any]
333
_path: Optional[str]
334
+ _update_uses_post: bool = False
335
gitlab: gitlab.Gitlab
336
337
def _check_missing_update_attrs(self, data: Dict[str, Any]) -> None:
@@ -357,7 +358,7 @@ def _get_update_method(
357
358
Returns:
359
object: http_put (default) or http_post
360
"""
- if getattr(self, "_update_uses_post", False):
361
+ if self._update_uses_post:
362
http_method = self.gitlab.http_post
363
else:
364
http_method = self.gitlab.http_put
0 commit comments