Merge "image: Parse hw_vif_multiqueue_enabled as BoolStr"
This commit is contained in:
commit
ef55d7d166
2 files changed
+12
-1
No files matched your search
@@ -19,6 +19,7 @@ from keystoneauth1 import adapter
|
||||
|
||||
from openstack.common import tag
|
||||
from openstack import exceptions
|
||||
from openstack import format
|
||||
from openstack.image import _download
|
||||
from openstack import resource
|
||||
from openstack import utils
|
||||
@@ -230,9 +231,11 @@ class Image(resource.Resource, tag.TagMixin, _download.DownloadMixin):
|
||||
#: In this case, the driver sets the number of queues equal to the
|
||||
#: number of guest vCPUs. This makes the network performance scale
|
||||
#: across a number of vCPUs.
|
||||
#: Glance stores this extra property as a string; BoolStr parses
|
||||
#: ``"false"`` correctly (``type=bool`` would treat it as True).
|
||||
is_hw_vif_multiqueue_enabled = resource.Body(
|
||||
'hw_vif_multiqueue_enabled',
|
||||
type=bool,
|
||||
type=format.BoolStr,
|
||||
)
|
||||
#: If true, enables the BIOS bootmenu.
|
||||
is_hw_boot_menu_enabled = resource.Body('hw_boot_menu', type=bool)
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
Glance extra image properties such as ``hw_vif_multiqueue_enabled`` are
|
||||
returned as strings (``"true"`` / ``"false"``). The image resource now
|
||||
deserializes ``hw_vif_multiqueue_enabled`` with ``BoolStr`` so
|
||||
``"false"`` is treated as ``False`` rather than ``True``.
|
||||
(`bug 1996033 <https://bugs.launchpad.net/bugs/1996033>`__)
|
||||
Reference in new issue
Block a user