summaryrefslogtreecommitdiff
path: root/openstackclient/shell.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-04-17 20:47:55 +0000
committerGerrit Code Review <review@openstack.org>2015-04-17 20:47:55 +0000
commitcb681706fa5da9bf7ab4ebf9c4500896b2f90ca0 (patch)
treec476aaa5591f14f50a9392224a88be0de4af7b66 /openstackclient/shell.py
parent6c4f81516c6ad119d39c4952f3ab274f3d3f2efa (diff)
parent0d689871b4d8c060e1d48a9472449f3d670333bb (diff)
downloadpython-openstackclient-cb681706fa5da9bf7ab4ebf9c4500896b2f90ca0.tar.gz
Merge "Fix session timing"
Diffstat (limited to 'openstackclient/shell.py')
-rw-r--r--openstackclient/shell.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/openstackclient/shell.py b/openstackclient/shell.py
index c118fbd2..444d37e4 100644
--- a/openstackclient/shell.py
+++ b/openstackclient/shell.py
@@ -292,11 +292,10 @@ class OpenStackShell(app.App):
# Process collected timing data
if self.options.timing:
- # Loop through extensions
- for mod in self.ext_modules:
- client = getattr(self.client_manager, mod.API_NAME)
- if hasattr(client, 'get_timings'):
- self.timing_data.extend(client.get_timings())
+ # Get session data
+ self.timing_data.extend(
+ self.client_manager.session.get_timings(),
+ )
# Use the Timing pseudo-command to generate the output
tcmd = timing.Timing(self, self.options)