From 8a12ce45173481243faa50b752893abf358dda7f Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@google.com>
Date: Sat, 31 May 2008 23:51:07 +0000
Subject: [PATCH] Show cluster hypervisor for gnt-cluster info

Author: schreiberal
Reviewed-by: iustinp
---
 lib/cmdlib.py       | 1 +
 scripts/gnt-cluster | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/lib/cmdlib.py b/lib/cmdlib.py
index 5290d2c66..5e0de510c 100644
--- a/lib/cmdlib.py
+++ b/lib/cmdlib.py
@@ -1999,6 +1999,7 @@ class LUQueryClusterInfo(NoHooksLU):
       "export_version": constants.EXPORT_VERSION,
       "master": self.sstore.GetMasterNode(),
       "architecture": (platform.architecture()[0], platform.machine()),
+      "hypervisor_type": self.sstore.GetHypervisorType(),
       }
 
     return result
diff --git a/scripts/gnt-cluster b/scripts/gnt-cluster
index 036b30e35..59437de7a 100755
--- a/scripts/gnt-cluster
+++ b/scripts/gnt-cluster
@@ -141,6 +141,8 @@ def ShowClusterConfig(opts, args):
   print ("Architecture (this node): %s (%s)" %
          (result["architecture"][0], result["architecture"][1]))
 
+  print ("Cluster hypervisor: %s" % result["hypervisor_type"])
+
   return 0
 
 
-- 
GitLab