summaryrefslogtreecommitdiff
path: root/lib/ohai/plugins/solaris2/virtualization.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ohai/plugins/solaris2/virtualization.rb')
-rw-r--r--lib/ohai/plugins/solaris2/virtualization.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/ohai/plugins/solaris2/virtualization.rb b/lib/ohai/plugins/solaris2/virtualization.rb
index bca7b6eb..8aade938 100644
--- a/lib/ohai/plugins/solaris2/virtualization.rb
+++ b/lib/ohai/plugins/solaris2/virtualization.rb
@@ -74,7 +74,11 @@ Ohai.plugin(:Virtualization) do
if zones.length == 1
first_zone = zones.keys[0]
- unless first_zone == "global"
+ if( first_zone == "global")
+ virtualization[:system] = "zone"
+ virtualization[:role] = "host"
+ virtualization[:systems][:zone] = "host"
+ else
virtualization[:system] = "zone"
virtualization[:role] = "guest"
virtualization[:systems][:zone] = "guest"