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

(cherry picked from commit 4f36d7965e)
pull/39306/head
Abhijeet Kasurde 7 years ago committed by GitHub
parent 6b4b2d5381
commit 7dbe964de5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
minor_changes:
- Return virtual_facts after VMware platform detection, otherwise we're falling back to 'NA' for virtualization type and virtualization role.

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

Loading…
Cancel
Save