Revision d9a22528

b/lib/client/gnt_node.py
1 1
#
2 2
#
3 3

  
4
# Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Google Inc.
4
# Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Google Inc.
5 5
#
6 6
# This program is free software; you can redistribute it and/or modify
7 7
# it under the terms of the GNU General Public License as published by
......
303 303
  fmtoverride = dict.fromkeys(["pinst_list", "sinst_list", "tags"],
304 304
                              (",".join, False))
305 305

  
306
  cl = GetClient(query=False)
306
  cl = GetClient(query=True)
307 307

  
308 308
  return GenericList(constants.QR_NODE, selected_fields, args, opts.units,
309 309
                     opts.separator, not opts.no_headers,
......
529 529
  @return: the desired exit code
530 530

  
531 531
  """
532
  # note: if this starts using RPC fields, and we haven't yet fixed
533
  # hconfd, then we should revert to query=False
534 532
  cl = GetClient(query=True)
535 533
  result = cl.QueryNodes(fields=["name", "pip", "sip",
536 534
                                 "pinst_list", "sinst_list",
b/lib/rapi/rlib2.py
1 1
#
2 2
#
3 3

  
4
# Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Google Inc.
4
# Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Google Inc.
5 5
#
6 6
# This program is free software; you can redistribute it and/or modify
7 7
# it under the terms of the GNU General Public License as published by
......
397 397
    """Returns a list of all nodes.
398 398

  
399 399
    """
400
    client = self.GetClient(query=False)
400
    client = self.GetClient(query=True)
401 401

  
402 402
    if self.useBulk():
403 403
      bulkdata = client.QueryNodes([], N_FIELDS, False)
......
420 420

  
421 421
    """
422 422
    node_name = self.items[0]
423
    client = self.GetClient(query=False)
423
    client = self.GetClient(query=True)
424 424

  
425 425
    result = baserlib.HandleItemQueryErrors(client.QueryNodes,
426 426
                                            names=[node_name], fields=N_FIELDS,

Also available in: Unified diff