bug fix for evaluator
Change-Id: I7a8e4b07f4acb206f5b4ae4fc0ec2c1d63bafbd2
This commit is contained in:
parent
99c2600259
commit
357e2f5556
@ -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