Merge "Fix use of urlparse.urljoin"
This commit is contained in:
commit
2edb84db23
@ -291,7 +291,7 @@ class RedfishVirtualMediaBoot(base.BootInterface):
|
||||
|
||||
shutil.copyfile(image_file, published_file)
|
||||
|
||||
image_url = urlparse.urljoin(
|
||||
image_url = os.path.join(
|
||||
CONF.deploy.http_url, cls.IMAGE_SUBDIR, object_name)
|
||||
|
||||
image_url = cls._append_filename_param(
|
||||
|
@ -250,7 +250,7 @@ class RedfishVirtualMediaBootTestCase(db_base.DbTestCase):
|
||||
url = task.driver.boot._publish_image('file.iso', 'boot.iso')
|
||||
|
||||
self.assertEqual(
|
||||
'http://localhost/redfish?filename=file.iso', url)
|
||||
'http://localhost/redfish/boot.iso?filename=file.iso', url)
|
||||
|
||||
mock_mkdir.assert_called_once_with('/httpboot/redfish', 0x755)
|
||||
mock_link.assert_called_once_with(
|
||||
@ -272,7 +272,7 @@ class RedfishVirtualMediaBootTestCase(db_base.DbTestCase):
|
||||
url = task.driver.boot._publish_image('file.iso', 'boot.iso')
|
||||
|
||||
self.assertEqual(
|
||||
'http://localhost/redfish?filename=file.iso', url)
|
||||
'http://localhost/redfish/boot.iso?filename=file.iso', url)
|
||||
|
||||
mock_mkdir.assert_called_once_with('/httpboot/redfish', 0x755)
|
||||
|
||||
|
5
releasenotes/notes/fix-path-a3a0cfd2c135ace9.yaml
Normal file
5
releasenotes/notes/fix-path-a3a0cfd2c135ace9.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
Fix path used to virtual media iso, when served over
|
||||
local HTTP server([redfish]use_swift=false).
|
Loading…
Reference in New Issue
Block a user