Merge "mongo: remove _id in inserted alarm changes"

This commit is contained in:
Jenkins 2014-05-20 15:35:06 +00:00 committed by Gerrit Code Review
commit 34db7d95c8

View File

@ -212,7 +212,7 @@ class Connection(base.Connection):
def record_alarm_change(self, alarm_change):
"""Record alarm change event.
"""
self.db.alarm_history.insert(alarm_change)
self.db.alarm_history.insert(alarm_change.copy())
def get_samples(self, sample_filter, limit=None):
"""Return an iterable of model.Sample instances.