From 016acd85d2f38ff8ca7b442491000d923015f732 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Nussbaumer?= <rn@google.com> Date: Thu, 6 Jan 2011 14:41:27 +0100 Subject: [PATCH] List recorded powered state in gnt-node info MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: RenΓ© Nussbaumer <rn@google.com> Reviewed-by: Michael Hanselmann <hansmi@google.com> --- lib/client/gnt_node.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/client/gnt_node.py b/lib/client/gnt_node.py index 24a9b25e0..55bbdf4b9 100644 --- a/lib/client/gnt_node.py +++ b/lib/client/gnt_node.py @@ -388,17 +388,19 @@ def ShowNodeConfig(opts, args): result = cl.QueryNodes(fields=["name", "pip", "sip", "pinst_list", "sinst_list", "master_candidate", "drained", "offline", - "master_capable", "vm_capable"], + "master_capable", "vm_capable", "powered"], names=args, use_locking=False) for (name, primary_ip, secondary_ip, pinst, sinst, - is_mc, drained, offline, master_capable, vm_capable) in result: + is_mc, drained, offline, master_capable, vm_capable, powered) in result: ToStdout("Node name: %s", name) ToStdout(" primary ip: %s", primary_ip) ToStdout(" secondary ip: %s", secondary_ip) ToStdout(" master candidate: %s", is_mc) ToStdout(" drained: %s", drained) ToStdout(" offline: %s", offline) + if powered is not None: + ToStdout(" powered: %s", powered) ToStdout(" master_capable: %s", master_capable) ToStdout(" vm_capable: %s", vm_capable) if vm_capable: -- GitLab