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>
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)