From: Thanh Ha Date: Tue, 24 Apr 2018 16:53:33 +0000 (-0400) Subject: Remove trailing slashes in nexus_url X-Git-Tag: v0.13.0~5 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F05%2F10205%2F1;p=releng%2Flftools.git Remove trailing slashes in nexus_url lftools should not fail if the user passes extra trailing slashes that the command was not expecting. Change-Id: I9a32c48ddd5ee2898816db7faaeb0de805a38b3c Signed-off-by: Thanh Ha --- diff --git a/lftools/cli/sign.py b/lftools/cli/sign.py index 18930249..e93a70fe 100644 --- a/lftools/cli/sign.py +++ b/lftools/cli/sign.py @@ -63,6 +63,7 @@ def deploy_nexus(ctx, nexus_url, nexus_repo, staging_profile_id, root_domain): # as a workaround we have to at least give it 1 directory deep. Since most # LF projects are 'org' domain default is org but can be override with the # -r option. + nexus_url = nexus_url.rstrip('/') nexus_repo_url = "{}/content/repositories/{}/{}".format(nexus_url, nexus_repo, root_domain) sign_dir = tempfile.mkdtemp(prefix='gpg-signatures.')