summaryrefslogtreecommitdiffstats
path: root/qtip/loader/qpi.py
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2017-09-04 02:44:43 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-09-04 02:44:43 +0000
commit9ac9231cf1876719ca15f681a8fae667343a8c77 (patch)
tree8d48258b411a403b38a32259344b080dbdb27317 /qtip/loader/qpi.py
parent028cef6600399cae4ce6d252a03d6cfb691d43f0 (diff)
parentf0ecce090026da3ede406289d139d1de08674134 (diff)
Merge changes from topic 'storage'
* changes: Keep tests/data consistent with repository structure Add score calculation module for storperf
Diffstat (limited to 'qtip/loader/qpi.py')
-rw-r--r--qtip/loader/qpi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/qtip/loader/qpi.py b/qtip/loader/qpi.py
index 48f52e84..294fd2ff 100644
--- a/qtip/loader/qpi.py
+++ b/qtip/loader/qpi.py
@@ -24,7 +24,7 @@ class QPISpec(YamlFileLoader):
def __init__(self, name, paths=None):
super(QPISpec, self).__init__(name, paths=paths)
content = self.content
- self.formula = Formula(content[SpecProp.FORMULA])
+ self.formula = Formula(content.get(SpecProp.FORMULA, FormulaName.ARITHMETIC_MEAN))
self.sections = [Section(record, paths=paths)
for record in content[SpecProp.SECTIONS]]