From 3d2c0c0c00ec15c54b978ab0ef54789835ca9e31 Mon Sep 17 00:00:00 2001 From: Eyal Date: Sun, 9 Jul 2017 12:17:43 +0300 Subject: [PATCH] fix the condition to print for the osprofiler print the info only if --profile was used this fixes the tempest test failure in vitrage Change-Id: I67f0e2d22007bafba7564adbe07c43585407c39c --- vitrageclient/shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vitrageclient/shell.py b/vitrageclient/shell.py index bd5a450..2f06bf1 100644 --- a/vitrageclient/shell.py +++ b/vitrageclient/shell.py @@ -154,7 +154,7 @@ class VitrageShell(app.App): else: endpoint_override = None - if hasattr(self.options, "profile"): + if profiler and self.options.profile: # Initialize the root of the future trace: the created trace # ID will be used as the very first parent to which all # related traces will be bound to. The given HMAC key must