urljoin GUN together instead of manually concatenating
This commit is contained in:
parent
68128b938b
commit
70ae34357f
1 changed files with 2 additions and 2 deletions
|
@ -84,7 +84,7 @@ class TUFMetadataAPI(object):
|
|||
|
||||
Args:
|
||||
namespace: namespace containing the repository
|
||||
repository: the repo to get tags for
|
||||
repository: the repo to delete metadata for
|
||||
|
||||
Returns:
|
||||
True if successful, False otherwise
|
||||
|
@ -107,7 +107,7 @@ class TUFMetadataAPI(object):
|
|||
return True
|
||||
|
||||
def _gun(self, namespace, repository):
|
||||
return "%s/%s/%s" % (self._gun_prefix, namespace, repository)
|
||||
return urljoin(self._gun_prefix, namespace, repository)
|
||||
|
||||
def _parse_signed(self, json_response):
|
||||
""" Attempts to parse the targets from a metadata response """
|
||||
|
|
Reference in a new issue