Detect OpenStack guests on RDO based installs, Newton and newer. (#35452)

The product string (used as the DMI product name) changed from
"OpenStack Nova" to "OpenStack Compute" between Mitaka and Newton
in the OpenStack RDO packaging.
This commit is contained in:
Kriss Andsten 2018-02-05 18:13:52 +01:00 committed by Adrian Likins
parent defff8ceb4
commit bda2f42f97

View file

@ -97,7 +97,7 @@ class LinuxVirtual(Virtual):
virtual_facts['virtualization_role'] = 'guest'
return virtual_facts
if product_name == 'OpenStack Nova':
if product_name in ['OpenStack Compute', 'OpenStack Nova']:
virtual_facts['virtualization_type'] = 'openstack'
virtual_facts['virtualization_role'] = 'guest'
return virtual_facts