Merge "bug fix for evaluator"
This commit is contained in:
commit
7091d3cad3
@ -256,11 +256,9 @@ class Processor(processor.ProcessorBase):
|
||||
def _calculate_aggregated_state(self, vertex, action):
|
||||
LOG.debug("calculate event state")
|
||||
|
||||
if action == EventAction.UPDATE_ENTITY or \
|
||||
action == EventAction.DELETE_ENTITY:
|
||||
if action in [EventAction.UPDATE_ENTITY, EventAction.DELETE_ENTITY,
|
||||
EventAction.CREATE_ENTITY]:
|
||||
graph_vertex = self.entity_graph.get_vertex(vertex.vertex_id)
|
||||
elif action == EventAction.CREATE_ENTITY:
|
||||
graph_vertex = None
|
||||
elif action == EventAction.END_MESSAGE:
|
||||
return None
|
||||
else:
|
||||
|
@ -167,7 +167,7 @@ class ZoneTransformer(transformer_base.TransformerBase):
|
||||
vitrage_id,
|
||||
entity_id=host_name,
|
||||
entity_category=EntityCategory.RESOURCE,
|
||||
entity_type=self.ZONE_TYPE,
|
||||
entity_type=EntityType.NOVA_HOST,
|
||||
entity_state=host_state,
|
||||
update_timestamp=timestamp)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user