RHEV virt facts: Detect vdsmd in addition to vdsm (#70901)

Change:
- Look for the `vdsmd` process in addition to `vdsm` as before.

Tickets:
- Fixes #66147

Signed-off-by: Rick Elrod <rick@elrod.me>
This commit is contained in:
Rick Elrod 2020-07-28 10:35:34 -05:00 committed by GitHub
parent 7d32129efb
commit c19a10e13a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
minor_changes:
- virtualization facts - Detect ``vdsmd`` in addition to ``vdsm`` when trying to detect RHEV hosts. (https://github.com/ansible/ansible/issues/66147)

View file

@ -206,7 +206,7 @@ class LinuxVirtual(Virtual):
try:
with open(f) as virt_fh:
comm_content = virt_fh.read().rstrip()
if comm_content == 'vdsm':
if comm_content in ('vdsm', 'vdsmd'):
virtual_facts['virtualization_type'] = 'RHEV'
break
except Exception: