Remove sample_timestamp from update events made by vitrage

Closes-Bug: #1701194

Change-Id: I4f130202589420d937be66ea7def1465bf2bf324
This commit is contained in:
Alexey Weyl 2017-07-18 07:34:47 +00:00
parent d3a992bafc
commit 9c30206251
2 changed files with 2 additions and 4 deletions

View File

@ -33,9 +33,9 @@ def is_newer_vertex(prev_vertex, new_vertex):
return True
prev_time = parser.parse(prev_timestamp)
new_timestamp = new_vertex[VProps.VITRAGE_SAMPLE_TIMESTAMP]
new_timestamp = new_vertex.get(VProps.VITRAGE_SAMPLE_TIMESTAMP)
if not new_timestamp:
return False
return True
new_time = parser.parse(new_timestamp)
return prev_time <= new_time

View File

@ -63,8 +63,6 @@ class EvaluatorEventTransformer(transformer_base.TransformerBase):
if event_type == UPDATE_VERTEX:
properties = {
VProps.UPDATE_TIMESTAMP: update_timestamp,
VProps.VITRAGE_SAMPLE_TIMESTAMP:
event[VProps.VITRAGE_SAMPLE_TIMESTAMP],
VProps.VITRAGE_IS_PLACEHOLDER: False,
VProps.RESOURCE_ID: event.get(TFields.TARGET)
}