aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/benchmark/contexts
diff options
context:
space:
mode:
authorJingLu5 <lvjing5@huawei.com>2016-11-01 15:22:02 +0800
committerJingLu5 <lvjing5@huawei.com>2016-11-01 15:39:39 +0800
commit9fc1840ccd28bb931c5fe519917965215248c2c0 (patch)
treebfc1f1ac9d2ef118fbc5cc6a59f5d9ab90d05ed7 /yardstick/benchmark/contexts
parent3a3de7c54c9a970979672391e06b613a12f5ab62 (diff)
Bugfix:fix a bug that yardstick_key.pub cannot be found in Yardstick docker
JIRA: YARDSTICK-379 Change-Id: I8416a38c94e07f0f83cb74d920a7c4d22a0cd04a Signed-off-by: JingLu5 <lvjing5@huawei.com>
Diffstat (limited to 'yardstick/benchmark/contexts')
-rw-r--r--yardstick/benchmark/contexts/heat.py4
1 files changed, 3 insertions, 1 deletions
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):