Merge "Copy measurement before destructive update"

This commit is contained in:
Jenkins 2016-06-29 18:27:51 +00:00 committed by Gerrit Code Review
commit 0087a9491f

View File

@ -102,7 +102,8 @@ class MonascaAPI(object):
# Split out separate POSTs for each delegated tenant (includes 'None')
tenant_group = {}
for measurement in measurements:
for measurement_element in measurements:
measurement = copy.deepcopy(measurement_element)
m_dict = measurement.__dict__
m_dict['timestamp'] *= 1000
delegated_tenant = m_dict.pop('delegated_tenant')