remove key from _get_node_type_by_cap
Change-Id: I5491c9bd96dd1804004d0efda7cd987c46f777bf Closes-Bug: 1668075
This commit is contained in:
parent
811ce4fa38
commit
22db270003
@ -82,7 +82,7 @@ class NodeType(StatefulEntityType):
|
||||
if isinstance(value, dict):
|
||||
captype = value['capability']
|
||||
value = (self.
|
||||
_get_node_type_by_cap(key, captype))
|
||||
_get_node_type_by_cap(captype))
|
||||
relation = self._get_relation(key, value)
|
||||
keyword = key
|
||||
node_type = value
|
||||
@ -91,7 +91,7 @@ class NodeType(StatefulEntityType):
|
||||
relationship[rtype] = relatednode
|
||||
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
|
||||
|
||||
This method will lookup all node types if they have the
|
||||
|
Loading…
x
Reference in New Issue
Block a user