Repository: libcloud Updated Branches: refs/heads/trunk 6f9e428c5 -> 051c3e5e5
add trailing slashes for hub API client Closes #862 Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/03af9a0a Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/03af9a0a Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/03af9a0a Branch: refs/heads/trunk Commit: 03af9a0aa9384cd86215bdf1918da96828fb22aa Parents: 6f9e428 Author: Anthony Shaw <anthonys...@apache.org> Authored: Thu Sep 22 10:30:12 2016 +1000 Committer: Anthony Shaw <anthonys...@apache.org> Committed: Fri Sep 23 08:39:20 2016 +1000 ---------------------------------------------------------------------- libcloud/container/utils/docker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/03af9a0a/libcloud/container/utils/docker.py ---------------------------------------------------------------------- diff --git a/libcloud/container/utils/docker.py b/libcloud/container/utils/docker.py index da67516..cbf5cf3 100644 --- a/libcloud/container/utils/docker.py +++ b/libcloud/container/utils/docker.py @@ -114,7 +114,7 @@ class RegistryClient(object): :return: The details of the repository :rtype: ``object`` """ - path = '/v2/repositories/%s/%s' % (namespace, repository_name) + path = '/v2/repositories/%s/%s/' % (namespace, repository_name) response = self.connection.request(path) return response.object @@ -134,7 +134,7 @@ class RegistryClient(object): :return: A container image :rtype: :class:`libcloud.container.base.ContainerImage` """ - path = '/v2/repositories/%s/%s/tags/%s' \ + path = '/v2/repositories/%s/%s/tags/%s/' \ % (namespace, repository_name, tag) response = self.connection.request(path) return self._to_image(repository_name, response.object)