1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Returning 'NA' when no virtualization found

This commit is contained in:
Matthew Riedel 2014-03-10 11:58:04 -04:00
parent 53fd5295dc
commit 5875d19f4d

View file

@ -2185,6 +2185,13 @@ class LinuxVirtual(Virtual):
self.facts['virtualization_role'] = 'host'
return
# If none of the above matches, return 'NA' for virtualization_type
# and virtualization_role. This allows for proper grouping.
self.facts['virtualization_type'] = 'NA'
self.facts['virtualization_role'] = 'NA'
return
class HPUXVirtual(Virtual):
"""
This is a HP-UX specific subclass of Virtual. It defines