diff options
Diffstat (limited to 'jtosca/src/main/java')
-rw-r--r-- | jtosca/src/main/java/org/openecomp/sdc/toscaparser/api/elements/NodeType.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/jtosca/src/main/java/org/openecomp/sdc/toscaparser/api/elements/NodeType.java b/jtosca/src/main/java/org/openecomp/sdc/toscaparser/api/elements/NodeType.java index 853b8ac..e7dc464 100644 --- a/jtosca/src/main/java/org/openecomp/sdc/toscaparser/api/elements/NodeType.java +++ b/jtosca/src/main/java/org/openecomp/sdc/toscaparser/api/elements/NodeType.java @@ -106,7 +106,10 @@ public class NodeType extends StatefulEntityType { // the capability type String captype = (String)req.get("capability"); String value = _getNodeTypeByCap(captype); - relation = _getRelation(key,value); + String getRelation = _getRelation(key,value); + if (getRelation != null) { + relation = getRelation; + } keyword = key; nodeType = value; } |