query: Factorize code for getting statistics value
authorMichael Hanselmann <hansmi@google.com>
Tue, 18 Dec 2012 16:38:54 +0000 (17:38 +0100)
committerMichael Hanselmann <hansmi@google.com>
Wed, 19 Dec 2012 16:54:58 +0000 (17:54 +0100)
commitb4600d4f5ffe014a0c45c5af90caa3c104b41422
tree9a27146564a4db17089687ea7c35c7891a516dc8
parentd6f3a69d95be3a90d566a5e3c979f624eaf3aaf9
query: Factorize code for getting statistics value

This was not only copied for the networking fields in commit 306bed0e,
but commit cfcea7ef fixed wrongly ordered parameters and didn't fix the
original. Either way, this patch merges the two cases again. The newly
added function is already tested through the tests for
_GetLiveNodeField.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/query.py