Revision 016acd85

b/lib/client/gnt_node.py
388 388
  result = cl.QueryNodes(fields=["name", "pip", "sip",
389 389
                                 "pinst_list", "sinst_list",
390 390
                                 "master_candidate", "drained", "offline",
391
                                 "master_capable", "vm_capable"],
391
                                 "master_capable", "vm_capable", "powered"],
392 392
                         names=args, use_locking=False)
393 393

  
394 394
  for (name, primary_ip, secondary_ip, pinst, sinst,
395
       is_mc, drained, offline, master_capable, vm_capable) in result:
395
       is_mc, drained, offline, master_capable, vm_capable, powered) in result:
396 396
    ToStdout("Node name: %s", name)
397 397
    ToStdout("  primary ip: %s", primary_ip)
398 398
    ToStdout("  secondary ip: %s", secondary_ip)
399 399
    ToStdout("  master candidate: %s", is_mc)
400 400
    ToStdout("  drained: %s", drained)
401 401
    ToStdout("  offline: %s", offline)
402
    if powered is not None:
403
      ToStdout("  powered: %s", powered)
402 404
    ToStdout("  master_capable: %s", master_capable)
403 405
    ToStdout("  vm_capable: %s", vm_capable)
404 406
    if vm_capable:

Also available in: Unified diff