From: JingLu5 Date: Tue, 1 Nov 2016 07:22:02 +0000 (+0800) Subject: Bugfix:fix a bug that yardstick_key.pub cannot be found in Yardstick docker X-Git-Tag: danube.1.0~226 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F27%2F23827%2F3;p=yardstick.git Bugfix:fix a bug that yardstick_key.pub cannot be found in Yardstick docker JIRA: YARDSTICK-379 Change-Id: I8416a38c94e07f0f83cb74d920a7c4d22a0cd04a Signed-off-by: JingLu5 --- 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):