summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxiaodong shang <shang.xiaodong@zte.com.cn>2017-08-12 14:02:30 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-08-12 14:02:30 +0000
commitdc7e1761e1c06ce822308d74d5dededb9a85f940 (patch)
treea7feb940b64a93dd939e876ab37145a5e295d5ee
parentd3b0c13441b150eaf5898ccf39c0ecee74a19da1 (diff)
parente947d728df6f67e19ed4c8254347e116d1548e18 (diff)
Merge "Support yaml file with suffix of yml"
-rw-r--r--tosca2heat/tosca-parser/toscaparser/tosca_template.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tosca2heat/tosca-parser/toscaparser/tosca_template.py b/tosca2heat/tosca-parser/toscaparser/tosca_template.py
index f48078f..9e84f3d 100644
--- a/tosca2heat/tosca-parser/toscaparser/tosca_template.py
+++ b/tosca2heat/tosca-parser/toscaparser/tosca_template.py
@@ -272,7 +272,7 @@ class ToscaTemplate(object):
update_definitions(version)
def _get_path(self, path):
- if path.lower().endswith('.yaml'):
+ if path.lower().endswith('.yaml') or path.lower().endswith('.yml'):
return path
elif path.lower().endswith(('.zip', '.csar')):
# a CSAR archive