From 5875d19f4da65f6519ad818dbd4b5564a8da36b8 Mon Sep 17 00:00:00 2001 From: Matthew Riedel Date: Mon, 10 Mar 2014 11:58:04 -0400 Subject: [PATCH] Returning 'NA' when no virtualization found --- library/system/setup | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/library/system/setup b/library/system/setup index f140991dc2..46fa934a4b 100644 --- a/library/system/setup +++ b/library/system/setup @@ -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