summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects/projects.py
diff options
context:
space:
mode:
authorJohn L. Villalovos <john@sodarock.com>2022-01-13 16:05:17 -0800
committerJohn L. Villalovos <john@sodarock.com>2022-01-13 16:05:17 -0800
commitc3c3a914fa2787ae6a1368fe6550585ee252c901 (patch)
tree3778510769fad77088b48e2d7462d3481f1d9abb /gitlab/v4/objects/projects.py
parent27e07422ba98b875f999192318f44f83eb16c501 (diff)
downloadgitlab-c3c3a914fa2787ae6a1368fe6550585ee252c901.tar.gz
chore(objects): use `self.encoded_id` where could be a string
Updated a few remaining usages of `self.id` to use `self.encoded_id` where it could be a string value.
Diffstat (limited to 'gitlab/v4/objects/projects.py')
-rw-r--r--gitlab/v4/objects/projects.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gitlab/v4/objects/projects.py b/gitlab/v4/objects/projects.py
index 58666ce..ec0ae39 100644
--- a/gitlab/v4/objects/projects.py
+++ b/gitlab/v4/objects/projects.py
@@ -441,7 +441,7 @@ class Project(RefreshMixin, SaveMixin, ObjectDeleteMixin, RepositoryMixin, RESTO
with open(filepath, "rb") as f:
filedata = f.read()
- url = f"/projects/{self.id}/uploads"
+ url = f"/projects/{self.encoded_id}/uploads"
file_info = {"file": (filename, filedata)}
data = self.manager.gitlab.http_post(url, files=file_info)
@@ -538,7 +538,7 @@ class Project(RefreshMixin, SaveMixin, ObjectDeleteMixin, RepositoryMixin, RESTO
GitlabAuthenticationError: If authentication is not correct
GitlabTransferProjectError: If the project could not be transferred
"""
- path = f"/projects/{self.id}/transfer"
+ path = f"/projects/{self.encoded_id}/transfer"
self.manager.gitlab.http_put(
path, post_data={"namespace": to_namespace}, **kwargs
)