nova/nova/virt
Lee Yarwood 184f0074cc imagebackend: default by_name image_type to config correctly
Callers of by_name shouldn't need to pass in the default from CONF.

This has implications for the libvirt_imagebackend fixture. The
_mock_backend() method in the libvirt_imagebackend fixture is what
mocks out Backend.backend(). Before this patch, the defaulting of
image_type to CONF.libvirt.images_type was done *inside*
Backend.backend() whenever image_type=None was passed in. As of this
patch, this is no longer case, and the default value from CONF gets
passed in instead.

Unit tests were testing the previous behaviour and essentially just
asserting that None was passed in. This was never really correct to
begin with, so a couple of assertIsNone() assertions need to be
updated.

Change-Id: Ib95aa440ffff0989c90f09f5b5d4e26b30db9683
2022-08-02 21:25:47 +00:00
..
disk Add autopep8 to tox and pre-commit 2021-11-08 12:37:27 +00:00
hyperv Add supports_remote_managed_ports capability 2022-02-09 01:23:27 +03:00
image
ironic Fix typos 2022-05-30 17:40:00 +05:30
libvirt imagebackend: default by_name image_type to config correctly 2022-08-02 21:25:47 +00:00
powervm Add supports_remote_managed_ports capability 2022-02-09 01:23:27 +03:00
vmwareapi VMware: StableMoRefProxy for moref recovery 2022-04-29 08:14:39 +00:00
zvm Fix typos 2022-05-30 17:40:00 +05:30
__init__.py
arch.py Added ability to configure default architecture for ImagePropertiesFilter 2018-05-14 16:55:13 -04:00
block_device.py block_device: Ignore VolumeAttachmentNotFound during detach 2021-12-03 12:07:33 +00:00
configdrive.py Remove six.text_type (1/2) 2020-12-13 11:25:31 +00:00
driver.py block_device_info: Add swap to inline 2022-08-02 21:25:47 +00:00
event.py Port binding based on events during live migration 2018-07-19 09:09:55 -04:00
fake.py Record SRIOV PF MAC in the binding profile 2022-05-03 18:08:50 +02:00
hardware.py Merge "Fix to implement 'pack' or 'spread' VM's NUMA cells" 2022-02-17 20:28:04 +00:00
imagecache.py Include removal of ephemeral backing files in the image cache manager 2020-10-09 12:24:06 +01:00
images.py images: Make JSON the default output format of calls to qemu-img info 2020-04-16 16:38:24 +01:00
interfaces.template Update the file for IPv4-only or IPv6-only network 2019-10-02 16:54:20 +00:00
netutils.py nova-net: Remove final references to nova-network 2020-01-08 13:54:12 +00:00
osinfo.py Stop sending bad values from libosinfo to libvirt 2019-07-04 15:30:51 +01:00
storage_users.py Remove translation of log messages 2017-06-13 11:20:28 +07:00
virtapi.py Add a way to exit early from a wait_for_instance_event() 2019-12-02 07:00:26 -08:00