diff options
author | xarx00 <xarx@sms.cz> | 2019-03-04 15:26:54 +0100 |
---|---|---|
committer | xarx00 <xarx@sms.cz> | 2019-03-05 13:21:15 +0100 |
commit | 675f879c1ec6cf1c77cbf96d8b7b2cd51e1cbaad (patch) | |
tree | 02f48f5b56332fe39d67031c03e8ea840fcf88d4 /gitlab/v4/objects.py | |
parent | 17924424e5112f5c4b3de16e46856794dea3509b (diff) | |
download | gitlab-675f879c1ec6cf1c77cbf96d8b7b2cd51e1cbaad.tar.gz |
Fix for #716: %d replaced by %s
Diffstat (limited to 'gitlab/v4/objects.py')
-rw-r--r-- | gitlab/v4/objects.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py index c3f8a81..b9769ba 100644 --- a/gitlab/v4/objects.py +++ b/gitlab/v4/objects.py @@ -909,7 +909,7 @@ class Group(SaveMixin, ObjectDeleteMixin, RESTObject): GitlabAuthenticationError: If authentication is not correct GitlabTransferProjectError: If the project could not be transfered """ - path = '/groups/%d/projects/%d' % (self.id, to_project_id) + path = '/groups/%s/projects/%s' % (self.id, to_project_id) self.manager.gitlab.http_post(path, **kwargs) @cli.register_custom_action('Group', ('scope', 'search')) @@ -930,7 +930,7 @@ class Group(SaveMixin, ObjectDeleteMixin, RESTObject): GitlabList: A list of dicts describing the resources found. """ data = {'scope': scope, 'search': search} - path = '/groups/%d/search' % self.get_id() + path = '/groups/%s/search' % self.get_id() return self.manager.gitlab.http_list(path, query_data=data, **kwargs) @cli.register_custom_action('Group', ('cn', 'group_access', 'provider')) @@ -949,7 +949,7 @@ class Group(SaveMixin, ObjectDeleteMixin, RESTObject): GitlabAuthenticationError: If authentication is not correct GitlabCreateError: If the server cannot perform the request """ - path = '/groups/%d/ldap_group_links' % self.get_id() + path = '/groups/%s/ldap_group_links' % self.get_id() data = {'cn': cn, 'group_access': group_access, 'provider': provider} self.manager.gitlab.http_post(path, post_data=data, **kwargs) @@ -967,7 +967,7 @@ class Group(SaveMixin, ObjectDeleteMixin, RESTObject): GitlabAuthenticationError: If authentication is not correct GitlabDeleteError: If the server cannot perform the request """ - path = '/groups/%d/ldap_group_links' % self.get_id() + path = '/groups/%s/ldap_group_links' % self.get_id() if provider is not None: path += '/%s' % provider path += '/%s' % cn @@ -985,7 +985,7 @@ class Group(SaveMixin, ObjectDeleteMixin, RESTObject): GitlabAuthenticationError: If authentication is not correct GitlabCreateError: If the server cannot perform the request """ - path = '/groups/%d/ldap_sync' % self.get_id() + path = '/groups/%s/ldap_sync' % self.get_id() self.manager.gitlab.http_post(path, **kwargs) @@ -3216,7 +3216,7 @@ class ProjectExport(RefreshMixin, RESTObject): Returns: str: The blob content if streamed is False, None otherwise """ - path = '/projects/%d/export/download' % self.project_id + path = '/projects/%s/export/download' % self.project_id result = self.manager.gitlab.http_get(path, streamed=streamed, raw=True, **kwargs) return utils.response_content(result, streamed, action, chunk_size) @@ -3717,7 +3717,7 @@ class Project(SaveMixin, ObjectDeleteMixin, RESTObject): Returns: str: The uncompressed tar archive of the repository """ - path = '/projects/%d/snapshot' % self.get_id() + path = '/projects/%s/snapshot' % self.get_id() result = self.manager.gitlab.http_get(path, streamed=streamed, raw=True, **kwargs) return utils.response_content(result, streamed, action, chunk_size) @@ -3740,7 +3740,7 @@ class Project(SaveMixin, ObjectDeleteMixin, RESTObject): GitlabList: A list of dicts describing the resources found. """ data = {'scope': scope, 'search': search} - path = '/projects/%d/search' % self.get_id() + path = '/projects/%s/search' % self.get_id() return self.manager.gitlab.http_list(path, query_data=data, **kwargs) @cli.register_custom_action('Project') @@ -3755,7 +3755,7 @@ class Project(SaveMixin, ObjectDeleteMixin, RESTObject): GitlabAuthenticationError: If authentication is not correct GitlabCreateError: If the server failed to perform the request """ - path = '/projects/%d/mirror/pull' % self.get_id() + path = '/projects/%s/mirror/pull' % self.get_id() self.manager.gitlab.http_post(path, **kwargs) @cli.register_custom_action('Project', ('to_namespace', )) @@ -3772,7 +3772,7 @@ class Project(SaveMixin, ObjectDeleteMixin, RESTObject): GitlabAuthenticationError: If authentication is not correct GitlabTransferProjectError: If the project could not be transfered """ - path = '/projects/%d/transfer' % (self.id,) + path = '/projects/%s/transfer' % (self.id,) self.manager.gitlab.http_put(path, post_data={"namespace": to_namespace}, **kwargs) |