diff options
| author | John L. Villalovos <john@sodarock.com> | 2022-01-13 07:39:39 -0800 |
|---|---|---|
| committer | John L. Villalovos <john@sodarock.com> | 2022-01-13 07:39:39 -0800 |
| commit | 888f3328d3b1c82a291efbdd9eb01f11dff0c764 (patch) | |
| tree | 3fe3268570dbe66f5d4e35bef46b4ca018c516da /gitlab | |
| parent | 4a000b6c41f0a7ef6121c62a4c598edc20973799 (diff) | |
| download | gitlab-888f3328d3b1c82a291efbdd9eb01f11dff0c764.tar.gz | |
fix(api): services: add missing `lazy` parameterjlvillal/lazy_service
Commit 8da0b758c589f608a6ae4eeb74b3f306609ba36d added the `lazy`
parameter to the services `get()` method but missed then using the
`lazy` parameter when it called `super(...).get(...)`
Closes: #1828
Diffstat (limited to 'gitlab')
| -rw-r--r-- | gitlab/v4/objects/services.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gitlab/v4/objects/services.py b/gitlab/v4/objects/services.py index 632f002..2af04d2 100644 --- a/gitlab/v4/objects/services.py +++ b/gitlab/v4/objects/services.py @@ -1,3 +1,8 @@ +""" +GitLab API: +https://docs.gitlab.com/ee/api/integrations.html +""" + from typing import Any, cast, Dict, List, Optional, Union from gitlab import cli @@ -275,7 +280,10 @@ class ProjectServiceManager(GetMixin, UpdateMixin, DeleteMixin, ListMixin, RESTM GitlabAuthenticationError: If authentication is not correct GitlabGetError: If the server cannot perform the request """ - obj = cast(ProjectService, super(ProjectServiceManager, self).get(id, **kwargs)) + obj = cast( + ProjectService, + super(ProjectServiceManager, self).get(id, lazy=lazy, **kwargs), + ) obj.id = id return obj |
