This shows the parameter 'modify ssh setup' in the
output of 'gnt-cluster info', to make the information
more accessible than only writing it in the configuration.

Signed-off-by: Helga Velroyen <[email protected]>
---
 lib/client/gnt_cluster.py  | 1 +
 src/Ganeti/Query/Server.hs | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/lib/client/gnt_cluster.py b/lib/client/gnt_cluster.py
index ea3babf..e65057d 100644
--- a/lib/client/gnt_cluster.py
+++ b/lib/client/gnt_cluster.py
@@ -612,6 +612,7 @@ def ShowClusterConfig(opts, args):
       ("zeroing image", result["zeroing_image"]),
       ("compression tools", result["compression_tools"]),
       ("enabled user shutdown", result["enabled_user_shutdown"]),
+      ("modify ssh setup", result["modify_ssh_setup"]),
       ]),
 
     ("Default node parameters",
diff --git a/src/Ganeti/Query/Server.hs b/src/Ganeti/Query/Server.hs
index d020e44..fc252c5 100644
--- a/src/Ganeti/Query/Server.hs
+++ b/src/Ganeti/Query/Server.hs
@@ -270,6 +270,8 @@ handleCall _ _ cdata QueryClusterInfo =
             , ("data_collector_interval",
                showJSON . fmap dataCollectorInterval
                         $ clusterDataCollectors cluster)
+            , ("modify_ssh_setup",
+               showJSON $ clusterModifySshSetup cluster)
             ]
 
   in case master of
-- 
2.6.0.rc2.230.g3dd15c0

Reply via email to