Revision d9a22528 lib/rapi/rlib2.py

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