mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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:
parent
defff8ceb4
commit
bda2f42f97
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue