diff options
author | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2017-08-30 14:43:41 +0800 |
---|---|---|
committer | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2017-08-30 14:43:41 +0800 |
commit | 59cc506c563a12e0a11b12e7b3742fec25e1e0f3 (patch) | |
tree | 410ae9fe30db8277d6a81174c5011378b936d89a /qtip/loader | |
parent | b15b028f061858de71fc98459d562dd76e3aecfe (diff) |
Add score calculation module for storperf
Change-Id: I469ee4d768e16a27c3bde660bc1029d5a3507b72
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'qtip/loader')
-rw-r--r-- | qtip/loader/qpi.py | 2 |
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]] |