Fix StatefulEntityType when entitytype is not define 79/41379/1
authorshangxdy <shang.xiaodong@zte.com.cn>
Fri, 8 Sep 2017 08:32:09 +0000 (16:32 +0800)
committershangxdy <shang.xiaodong@zte.com.cn>
Fri, 8 Sep 2017 08:32:09 +0000 (16:32 +0800)
commit0e2c3b05b5d788635bba09c19487cf9fa23095ee
tree4590a71805dda4a673c07041c9bddfa38c196d54
parentdd361d8d9df7a69a4fc7c004db5b959440a024c2
Fix StatefulEntityType when entitytype is not define

Currently, if a entity type is not defined, the defs in
StatefulEntityType will be none, then the access to self.defs will raise
error, finally the parser will be crushed. this patch will enhance it.

JIRA: PARSER-153

Change-Id: I5db50102e9c63428298ce6c8ecbf38e3bd8e57f8
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
tosca2heat/tosca-parser/toscaparser/elements/capabilitytype.py
tosca2heat/tosca-parser/toscaparser/elements/statefulentitytype.py