We need to return virtual_facts after VMWare platform detection (#38237)

This commit is contained in:
bmfp 2018-04-23 11:43:53 +02:00 committed by ansibot
parent ca164749b4
commit 4f36d7965e

View file

@ -245,6 +245,7 @@ class LinuxVirtual(Virtual):
if vendor_name.startwith('VMware'): if vendor_name.startwith('VMware'):
virtual_facts['virtualization_type'] = 'VMware' virtual_facts['virtualization_type'] = 'VMware'
virtual_facts['virtualization_role'] = 'guest' virtual_facts['virtualization_role'] = 'guest'
return virtual_facts
# If none of the above matches, return 'NA' for virtualization_type # If none of the above matches, return 'NA' for virtualization_type
# and virtualization_role. This allows for proper grouping. # and virtualization_role. This allows for proper grouping.