check_hobos: base_url may end with a / (#7453)

This commit is contained in:
Thomas NOËL 2015-06-08 10:05:55 +02:00
parent 506e186742
commit eaf5772cef
1 changed files with 2 additions and 0 deletions

View File

@ -67,6 +67,8 @@ class CmdCheckHobos(Command):
service = [x for x in self.all_services.get('services', []) if \
x.get('service-id') == 'wcs' and x.get('base_url') == base_url][0]
if base_url.endswith('/'): # wcs doesn't expect a trailing slash
service['base_url'] = base_url[:-1]
pub.app_dir = os.path.join(global_app_dir,
self.get_instance_path(service))