diff options
Diffstat (limited to 'tosca2heat/tosca-parser/toscaparser/topology_template.py')
-rw-r--r-- | tosca2heat/tosca-parser/toscaparser/topology_template.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tosca2heat/tosca-parser/toscaparser/topology_template.py b/tosca2heat/tosca-parser/toscaparser/topology_template.py index f8f8875..6cf4f31 100644 --- a/tosca2heat/tosca-parser/toscaparser/topology_template.py +++ b/tosca2heat/tosca-parser/toscaparser/topology_template.py @@ -58,6 +58,7 @@ class TopologyTemplate(object): self.groups = self._groups() self.policies = self._policies() self._process_intrinsic_functions() + self.substitution_mappings = self._substitution_mappings() def _inputs(self): inputs = [] @@ -65,6 +66,10 @@ class TopologyTemplate(object): input = Input(name, attrs) if self.parsed_params and name in self.parsed_params: input.validate(self.parsed_params[name]) + else: + default = input.default + if default: + input.validate(default) inputs.append(input) return inputs |