From 70ae34357f9e7589f474772b0697c0dac8357627 Mon Sep 17 00:00:00 2001 From: Evan Cordell Date: Wed, 12 Apr 2017 14:30:22 -0400 Subject: [PATCH] urljoin GUN together instead of manually concatenating --- util/tufmetadata/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/tufmetadata/api.py b/util/tufmetadata/api.py index 64c988521..1ef607c6b 100644 --- a/util/tufmetadata/api.py +++ b/util/tufmetadata/api.py @@ -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 """