Merge "Change image.hw_qemu_guest_agent to be string"

This commit is contained in:
Zuul 2021-10-03 12:44:35 +00:00 committed by Gerrit Code Review
commit b38f16e0e8
3 changed files with 9 additions and 3 deletions

View File

@ -224,8 +224,9 @@ class Image(resource.Resource, resource.TagMixin, _download.DownloadMixin):
os_type = resource.Body('os_type')
#: The operating system admin username.
os_admin_user = resource.Body('os_admin_user')
#: If true, QEMU guest agent will be exposed to the instance.
hw_qemu_guest_agent = resource.Body('hw_qemu_guest_agent', type=bool)
#: A string boolean, which if "true", QEMU guest agent will be exposed
#: to the instance.
hw_qemu_guest_agent = resource.Body('hw_qemu_guest_agent', type=str)
#: If true, require quiesce on snapshot via QEMU guest agent.
os_require_quiesce = resource.Body('os_require_quiesce', type=bool)
#: The URL for the schema describing a virtual machine image.

View File

@ -84,7 +84,7 @@ EXAMPLE = {
'auto_disk_config': True,
'os_type': '49',
'os_admin_user': 'ubuntu',
'hw_qemu_guest_agent': True,
'hw_qemu_guest_agent': 'yes',
'os_require_quiesce': True,
}

View File

@ -0,0 +1,5 @@
---
fixes:
- |
hw_qemu_guest_agent attribute of the image is a string boolean with values
`yes` and `no`.