diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-12-09 00:29:21 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-12-09 00:29:21 +0000 |
commit | 351c72aae97b27c5604c87e8442cfdea447b7fbf (patch) | |
tree | 4aedd86fb067e35260cbd33eeef170fdd3546bc1 /nova | |
parent | 2bb70e7b15e6cfef4652e2e49c4e02d151d2dbdf (diff) | |
parent | ca4715c1e077e44fd98370f110c8d429b6b9cefe (diff) | |
download | nova-351c72aae97b27c5604c87e8442cfdea447b7fbf.tar.gz |
Merge "Unity the comparison of hw_qemu_guest_agent"
Diffstat (limited to 'nova')
-rw-r--r-- | nova/virt/libvirt/driver.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nova/virt/libvirt/driver.py b/nova/virt/libvirt/driver.py index 39d12b4948..7bd4448a4d 100644 --- a/nova/virt/libvirt/driver.py +++ b/nova/virt/libvirt/driver.py @@ -1656,8 +1656,7 @@ class LibvirtDriver(driver.ComputeDriver): if not self._host.has_min_version( MIN_LIBVIRT_SET_ADMIN_PASSWD): raise exception.SetAdminPasswdNotSupported() - hw_qga = image_meta.properties.get('hw_qemu_guest_agent', '') - if not strutils.bool_from_string(hw_qga): + if not image_meta.properties.get('hw_qemu_guest_agent', False): raise exception.QemuGuestAgentNotEnabled() else: raise exception.SetAdminPasswdNotSupported() |