Use non-absolute url, when composing repository urls
This commit changes urls in the path of the to_url to be non-absolute, to allow urlparse lib concatenate path and MURANO_REPO_URL with a non-empty path component correctly. Change-Id: I4fd2b1001e05de79b0d1813790f7c61518f1a90f Closes-Bug: #1503593
This commit is contained in:
parent
7e792200a3
commit
23a792561d
@ -196,7 +196,7 @@ class ImportBundleWizard(views.ModalFormMixin,
|
||||
elif import_type == 'by_name':
|
||||
f = muranoclient_utils.to_url(
|
||||
form.cleaned_data['name'],
|
||||
path='/bundles/',
|
||||
path='bundles/',
|
||||
base_url=base_url,
|
||||
extension='.bundle',
|
||||
)
|
||||
@ -405,7 +405,7 @@ class ImportPackageWizard(views.ModalFormMixin,
|
||||
version = form.cleaned_data['repo_version']
|
||||
f = muranoclient_utils.to_url(
|
||||
name, version=version,
|
||||
path='/apps/',
|
||||
path='apps/',
|
||||
extension='.zip',
|
||||
base_url=base_url,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user