aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRex Lee <limingjiang@huawei.com>2016-11-29 06:47:52 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-11-29 06:47:52 +0000
commitc0694a411eb2f3f6daa7271afce7e688beff805d (patch)
tree12aa038b7c9ede4e5daea6d07ecb054b3ed4e1c0
parent6ea600277b163dd1518ff8cb1d6da3a0e38d1727 (diff)
parent57f61d1654e520e9fd553de0a3819024267d5389 (diff)
Merge "contexts/node: default to pod.yaml"
-rw-r--r--yardstick/benchmark/contexts/node.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yardstick/benchmark/contexts/node.py b/yardstick/benchmark/contexts/node.py
index c4e603a46..67db442d2 100644
--- a/yardstick/benchmark/contexts/node.py
+++ b/yardstick/benchmark/contexts/node.py
@@ -35,9 +35,9 @@ class NodeContext(Context):
def init(self, attrs):
'''initializes itself from the supplied arguments'''
self.name = attrs["name"]
- self.file_path = attrs.get("file", "")
+ self.file_path = attrs.get("file", "pod.yaml")
if not os.path.exists(self.file_path):
- self.file_path = YARDSTICK_ROOT_PATH + self.file_path
+ self.file_path = os.path.join(YARDSTICK_ROOT_PATH, self.file_path)
LOG.info("Parsing pod file: %s", self.file_path)