Correct method call to to_dict

Fix calls from .dict() to to_dict() in
IntrospectionRule.check_conditions and corresponding unit test.

Co-Authored-By: Nathan Harrison <nathan.harrison@sap.com>
Related-Bug: #1552781
Change-Id: I9fe7d400edcd7573132081a196e74eb09bc88cb7
changes/56/287956/1
William Stevenson 7 years ago
parent e659b90c61
commit e8ecb99122

@ -138,7 +138,7 @@ class IntrospectionRule(object):
scheme, path = _parse_path(cond.field)
if scheme == 'node':
source_data = node_info.node().dict()
source_data = node_info.node().to_dict()
elif scheme == 'data':
source_data = data

@ -102,7 +102,7 @@ class NodeTest(BaseTest):
mock_to_dict = mock.Mock(return_value=fake_node)
self.node = mock.Mock(**fake_node)
self.node.dict = mock_to_dict
self.node.to_dict = mock_to_dict
self.ports = []
self.node_info = node_cache.NodeInfo(uuid=self.uuid, started_at=0,

Loading…
Cancel
Save