remove key from _get_node_type_by_cap

Change-Id: I5491c9bd96dd1804004d0efda7cd987c46f777bf
Closes-Bug: 1668075
This commit is contained in:
Anusree 2017-02-26 21:39:37 +05:30
parent 811ce4fa38
commit 22db270003
1 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ class NodeType(StatefulEntityType):
if isinstance(value, dict): if isinstance(value, dict):
captype = value['capability'] captype = value['capability']
value = (self. value = (self.
_get_node_type_by_cap(key, captype)) _get_node_type_by_cap(captype))
relation = self._get_relation(key, value) relation = self._get_relation(key, value)
keyword = key keyword = key
node_type = value node_type = value
@ -91,7 +91,7 @@ class NodeType(StatefulEntityType):
relationship[rtype] = relatednode relationship[rtype] = relatednode
return relationship return relationship
def _get_node_type_by_cap(self, key, cap): def _get_node_type_by_cap(self, cap):
'''Find the node type that has the provided capability '''Find the node type that has the provided capability
This method will lookup all node types if they have the This method will lookup all node types if they have the