Revision ab9e48d1

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

  
4
# Copyright (C) 2011, 2012 Google Inc.
4
# Copyright (C) 2011, 2012, 2013 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
......
167 167
    "tags": (",".join, False),
168 168
    }
169 169

  
170
  cl = GetClient()
170
  cl = GetClient(query=True)
171 171
  return GenericList(constants.QR_NETWORK, desired_fields, args, None,
172 172
                     opts.separator, not opts.no_headers,
173 173
                     verbose=opts.verbose, format_override=fmtoverride,
......
184 184
  @return: the desired exit code
185 185

  
186 186
  """
187
  cl = GetClient(query=True)
188

  
187 189
  return GenericListFields(constants.QR_NETWORK, args, opts.separator,
188
                           not opts.no_headers)
190
                           not opts.no_headers, cl=cl)
189 191

  
190 192

  
191 193
def ShowNetworkConfig(_, args):
b/lib/rapi/rlib2.py
1 1
#
2 2
#
3 3

  
4
# Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Google Inc.
4
# Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 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
......
675 675
    """Returns a list of all networks.
676 676

  
677 677
    """
678
    client = self.GetClient()
678
    client = self.GetClient(query=True)
679 679

  
680 680
    if self.useBulk():
681 681
      bulkdata = client.QueryNetworks([], NET_FIELDS, False)
......
698 698

  
699 699
    """
700 700
    network_name = self.items[0]
701
    client = self.GetClient()
701
    client = self.GetClient(query=True)
702 702

  
703 703
    result = baserlib.HandleItemQueryErrors(client.QueryNetworks,
704 704
                                            names=[network_name],

Also available in: Unified diff