diff --git a/lib/client/gnt_cluster.py b/lib/client/gnt_cluster.py index 99fc31ef2b186a18e749dadcabf8b121c7db7662..d430d48ed6512e01855c3a812a39f9c0da21788f 100644 --- a/lib/client/gnt_cluster.py +++ b/lib/client/gnt_cluster.py @@ -1,7 +1,7 @@ # # -# Copyright (C) 2006, 2007, 2010 Google Inc. +# Copyright (C) 2006, 2007, 2010, 2011 Google Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -321,6 +321,9 @@ def ShowClusterConfig(opts, args): ToStdout("OS parameters:") _PrintGroupedParams(result["osparams"]) + ToStdout("Hidden OSes: %s", utils.CommaJoin(result["hidden_os"])) + ToStdout("Blacklisted OSes: %s", utils.CommaJoin(result["blacklisted_os"])) + ToStdout("Cluster parameters:") ToStdout(" - candidate pool size: %s", compat.TryToRoman(result["candidate_pool_size"], diff --git a/lib/cmdlib.py b/lib/cmdlib.py index a39c8f8d4ca4d8e68df4f301a37f8e40c823c412..51e94ff298b9d5b6170801a2a035be199adefedb 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -4604,6 +4604,8 @@ class LUClusterQuery(NoHooksLU): "reserved_lvs": cluster.reserved_lvs, "primary_ip_version": primary_ip_version, "prealloc_wipe_disks": cluster.prealloc_wipe_disks, + "hidden_os": cluster.hidden_os, + "blacklisted_os": cluster.blacklisted_os, } return result