diff options
author | Harald Musum <musum@verizonmedia.com> | 2021-07-15 17:56:22 +0200 |
---|---|---|
committer | Harald Musum <musum@verizonmedia.com> | 2021-07-15 17:56:22 +0200 |
commit | 65b55cffd46a1ba5c45d572f3d8712f95ad9feaf (patch) | |
tree | 6a833e643a5ecb7a23f5f66a872179b48056edeb /config-model | |
parent | 073c5be0df2970bd4e6d926a56d14657965992d3 (diff) |
Remove last / from url when switching server when doing upload
Do this only if there exists a new config source to switch to
Diffstat (limited to 'config-model')
-rwxr-xr-x | config-model/src/main/perl/vespa-deploy | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config-model/src/main/perl/vespa-deploy b/config-model/src/main/perl/vespa-deploy index 7d065fa93f4..deb3a4e46a3 100755 --- a/config-model/src/main/perl/vespa-deploy +++ b/config-model/src/main/perl/vespa-deploy @@ -411,8 +411,8 @@ sub http_upload { debug("exitcode=$exitcode\n"); debug("output=$output\n"); $configsource_url = shift(@configsources); - $configsource_url =~ s/\/$//; # Remove last / from configsource_url if ($configsource_url) { + $configsource_url =~ s/\/$//; # Remove last / from configsource_url $configsource_url_used = $configsource_url; $retry = 1; print_request_failed($exitcode, $configsource_url_used); |