domcaps: Fix check for uncached security features

We need to check against None, which is the initial value, otherwise
a host with none of the security features present will repeatedly poll
libvirt baseline APIs

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2019-11-12 14:15:56 -05:00
parent 51d84c54cb
commit d934d6f266

View File

@ -296,7 +296,7 @@ class DomainCapabilities(XMLBuilder):
'virt-ssbd',
'md-clear']
if self._features:
if self._features is not None:
return self._features
self._features = []