mirror of https://github.com/docker/compose.git
Fix bintray API client
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
709ba0975d
commit
47584a37c9
|
@ -15,7 +15,7 @@ class BintrayAPI(requests.Session):
|
|||
self.base_url = 'https://api.bintray.com/'
|
||||
|
||||
def create_repository(self, subject, repo_name, repo_type='generic'):
|
||||
url = '{base}/repos/{subject}/{repo_name}'.format(
|
||||
url = '{base}repos/{subject}/{repo_name}'.format(
|
||||
base=self.base_url, subject=subject, repo_name=repo_name,
|
||||
)
|
||||
data = {
|
||||
|
@ -30,7 +30,7 @@ class BintrayAPI(requests.Session):
|
|||
return result
|
||||
|
||||
def delete_repository(self, subject, repo_name):
|
||||
url = '{base}/repos/{subject}/{repo_name}'.format(
|
||||
url = '{base}repos/{subject}/{repo_name}'.format(
|
||||
base=self.base_url, subject=subject, repo_name=repo_name,
|
||||
)
|
||||
return self.delete(url)
|
||||
|
|
Loading…
Reference in New Issue