summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshangxdy <shang.xiaodong@zte.com.cn>2017-09-07 19:00:35 +0800
committershangxdy <shang.xiaodong@zte.com.cn>2017-09-07 19:00:35 +0800
commit5018163eae36d9ce8464a778960b7f77a19ba70a (patch)
treef42194196af02fb662578d45383978e6348da35a
parentdd361d8d9df7a69a4fc7c004db5b959440a024c2 (diff)
fix costum datatype definition in parameters
Currently, support customized datatype in parameters is error when transfer custom_defs in DataEntity.validate_datatype(self.type, value, None, datatype), it should be full custom definitions , not only one definition. the patch will fix it. JIRA: PARSER-152 Change-Id: If6d59f21fa75cbdf4e8e16f093e3d807910ad234 Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
-rw-r--r--tosca2heat/tosca-parser/toscaparser/parameters.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tosca2heat/tosca-parser/toscaparser/parameters.py b/tosca2heat/tosca-parser/toscaparser/parameters.py
index 0e24b99..d2d2eb3 100644
--- a/tosca2heat/tosca-parser/toscaparser/parameters.py
+++ b/tosca2heat/tosca-parser/toscaparser/parameters.py
@@ -92,7 +92,7 @@ class Input(object):
elif EntityType.DATATYPE_NETWORK_PREFIX + self.type in tosca:
datatype = tosca[EntityType.DATATYPE_NETWORK_PREFIX + self.type]
elif self.type in self.custom_defs:
- datatype = self.custom_defs[self.type]
+ datatype = self.custom_defs
DataEntity.validate_datatype(self.type, value, None, datatype)