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>
pull/70950/head
Rick Elrod 4 years ago committed by GitHub
parent 7d32129efb
commit c19a10e13a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)

@ -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:

Loading…
Cancel
Save