diff options
author | xiaodong shang <shang.xiaodong@zte.com.cn> | 2017-08-12 14:02:30 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-08-12 14:02:30 +0000 |
commit | dc7e1761e1c06ce822308d74d5dededb9a85f940 (patch) | |
tree | a7feb940b64a93dd939e876ab37145a5e295d5ee /tosca2heat/tosca-parser/toscaparser | |
parent | d3b0c13441b150eaf5898ccf39c0ecee74a19da1 (diff) | |
parent | e947d728df6f67e19ed4c8254347e116d1548e18 (diff) |
Merge "Support yaml file with suffix of yml"
Diffstat (limited to 'tosca2heat/tosca-parser/toscaparser')
-rw-r--r-- | tosca2heat/tosca-parser/toscaparser/tosca_template.py | 2 |
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 |