summaryrefslogtreecommitdiff
path: root/openstackclient/compute
diff options
context:
space:
mode:
authorDean Troyer <dtroyer@gmail.com>2014-05-08 22:42:21 -0500
committerDean Troyer <dtroyer@gmail.com>2014-07-08 02:04:00 -0500
commit4844a257790deef231176557776754dde929f840 (patch)
tree8055c40ae007029eb73900088c007b5c0553984c /openstackclient/compute
parentea938e8ddfa0f5f8832e09d61537f1e81e3121e9 (diff)
downloadpython-openstackclient-4844a257790deef231176557776754dde929f840.tar.gz
Add basic timing support
Add support for --timing options. Use cliff via a pseudo-command 'Timing' to support multiple outputformats. If an output format other than the default 'table' is selected use CSV since the timing data is in list form. Will pick up timing data for any client object that has a method similar to novaclient's get_timings(). TODO: * Stop instantiating all of the clientmanager client objects just to check for timing data. Descriptor magic required? Change-Id: I7f1076b7a250fba6a8b24b2ae9353a7f51b792b2
Diffstat (limited to 'openstackclient/compute')
-rw-r--r--openstackclient/compute/client.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/openstackclient/compute/client.py b/openstackclient/compute/client.py
index 3dacee88..8d5cda13 100644
--- a/openstackclient/compute/client.py
+++ b/openstackclient/compute/client.py
@@ -54,7 +54,9 @@ def make_client(instance):
service_type=API_NAME,
# FIXME(dhellmann): what is service_name?
service_name='',
- http_log_debug=http_log_debug)
+ http_log_debug=http_log_debug,
+ timings=instance.timing,
+ )
# Populate the Nova client to skip another auth query to Identity
if instance._url: