aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/common/template_format.py
diff options
context:
space:
mode:
authorJo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>2016-01-13 16:19:58 +0100
committerJo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>2016-01-13 17:27:17 +0100
commit791323df72d8bf4f4f4c32a1e7273721f2adc349 (patch)
treebdac6e82f26150f153be3ed0f699b60e62094a5d /yardstick/common/template_format.py
parent5c4c8667e0c0a8e039d7682f235b022f39149d56 (diff)
Fix flake8 errors
Change-Id: I14f21092f5e97abf0629a92a27062846a6d3130b JIRA:- Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
Diffstat (limited to 'yardstick/common/template_format.py')
-rw-r--r--yardstick/common/template_format.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/yardstick/common/template_format.py b/yardstick/common/template_format.py
index 881b7e45b..2deaf393c 100644
--- a/yardstick/common/template_format.py
+++ b/yardstick/common/template_format.py
@@ -56,8 +56,8 @@ def parse(tmpl_str):
if tpl is None:
tpl = {}
# Looking for supported version keys in the loaded template
- if not ('HeatTemplateFormatVersion' in tpl
- or 'heat_template_version' in tpl
- or 'AWSTemplateFormatVersion' in tpl):
+ if not ('HeatTemplateFormatVersion' in tpl or
+ 'heat_template_version' in tpl or
+ 'AWSTemplateFormatVersion' in tpl):
raise ValueError("Template format version not found.")
return tpl