Returning 'NA' when no virtualization found
This commit is contained in:
parent
87d4bd771f
commit
d21a8f6ddc
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue