From 9fc1840ccd28bb931c5fe519917965215248c2c0 Mon Sep 17 00:00:00 2001 From: JingLu5 Date: Tue, 1 Nov 2016 15:22:02 +0800 Subject: Bugfix:fix a bug that yardstick_key.pub cannot be found in Yardstick docker JIRA: YARDSTICK-379 Change-Id: I8416a38c94e07f0f83cb74d920a7c4d22a0cd04a Signed-off-by: JingLu5 --- yardstick/benchmark/contexts/heat.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/yardstick/benchmark/contexts/heat.py b/yardstick/benchmark/contexts/heat.py index b504cd4df..fcbe825d6 100644 --- a/yardstick/benchmark/contexts/heat.py +++ b/yardstick/benchmark/contexts/heat.py @@ -18,6 +18,7 @@ from yardstick.benchmark.contexts.model import PlacementGroup from yardstick.benchmark.contexts.model import Network from yardstick.benchmark.contexts.model import update_scheduler_hints from yardstick.orchestrator.heat import HeatTemplate +from yardstick.definitions import YARDSTICK_ROOT_PATH class HeatContext(Context): @@ -39,7 +40,8 @@ class HeatContext(Context): self._user = None self.template_file = None self.heat_parameters = None - self.key_filename = 'yardstick/resources/files/yardstick_key' + self.key_filename = YARDSTICK_ROOT_PATH + \ + 'yardstick/resources/files/yardstick_key' super(self.__class__, self).__init__() def init(self, attrs): -- cgit 1.2.3-korg