Merge "Debugging for tempest exception"
This commit is contained in:
commit
a54916b695
@ -52,7 +52,11 @@ class ScenarioRepository(object):
|
|||||||
|
|
||||||
def get_scenarios_by_vertex(self, vertex):
|
def get_scenarios_by_vertex(self, vertex):
|
||||||
|
|
||||||
|
try:
|
||||||
entity_key = frozenset(vertex.properties.items())
|
entity_key = frozenset(vertex.properties.items())
|
||||||
|
except Exception as e:
|
||||||
|
LOG.error('frozenset for vertex failed %s', str(vertex))
|
||||||
|
raise e
|
||||||
|
|
||||||
scenarios = []
|
scenarios = []
|
||||||
for scenario_key, value in self.entity_scenarios.items():
|
for scenario_key, value in self.entity_scenarios.items():
|
||||||
@ -148,9 +152,15 @@ class ScenarioRepository(object):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _create_edge_scenario_key(edge_desc):
|
def _create_edge_scenario_key(edge_desc):
|
||||||
return EdgeKeyScenario(edge_desc.edge.label,
|
try:
|
||||||
frozenset(edge_desc.source.properties.items()),
|
source_set = frozenset(edge_desc.source.properties.items())
|
||||||
frozenset(edge_desc.target.properties.items()))
|
target_set = frozenset(edge_desc.target.properties.items())
|
||||||
|
except Exception as e:
|
||||||
|
LOG.error('frozenset for edge failed - Source:%s Target:%s',
|
||||||
|
str(edge_desc.source),
|
||||||
|
str(edge_desc.target))
|
||||||
|
raise e
|
||||||
|
return EdgeKeyScenario(edge_desc.edge.label, source_set, target_set)
|
||||||
|
|
||||||
def _add_entity_scenario(self, scenario, entity):
|
def _add_entity_scenario(self, scenario, entity):
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user