Fix bug where we changes in outlier in metadata dict propogated to other events

This commit is contained in:
Erik Johnston 2015-01-30 10:30:54 +00:00
parent 78015948a7
commit c1c7b39827
3 changed files with 8 additions and 4 deletions

View file

@ -88,7 +88,10 @@ def prune_event(event):
if "age_ts" in event.unsigned:
allowed_fields["unsigned"]["age_ts"] = event.unsigned["age_ts"]
return type(event)(allowed_fields)
return type(event)(
allowed_fields,
internal_metadata_dict=event.internal_metadata.get_dict()
)
def serialize_event(hs, e, client_event=True):