Fix network query for extra stats fields
authorHelga Velroyen <helgav@google.com>
Tue, 27 Nov 2012 17:33:40 +0000 (18:33 +0100)
committerHelga Velroyen <helgav@google.com>
Tue, 27 Nov 2012 17:57:46 +0000 (18:57 +0100)
Extend _GetNetworkStatsField() to accept 4 arguments.
This fixes Issue 323.

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
Reviewed-by: Helga Velroyen <helgav@google.com>

lib/query.py

index a3e5224..7efdaa4 100644 (file)
@@ -2496,7 +2496,7 @@ _NETWORK_STATS_FIELDS = {
   }
 
 
-def _GetNetworkStatsField(field, kind, ctx):
+def _GetNetworkStatsField(field, kind, ctx, _):
   """Gets the value of a "stats" field from L{NetworkQueryData}.
 
   @param field: Field name