collector exception on record_metering_data

Fixes bug 1033413

Change-Id: I7f5ba8fb32ac21e0e7cb3c83c27e9b41beac4a29
This commit is contained in:
John H. Tran 2012-08-05 23:53:28 -07:00
parent e24300b799
commit 275bb1be6d

View File

@ -102,7 +102,7 @@ class CollectorManager(manager.Manager):
# Convert the timestamp to a datetime instance.
# Storage engines are responsible for converting
# that value to something they can store.
if 'timestamp' in data:
if data.get('timestamp'):
data['timestamp'] = timeutils.parse_isotime(
data['timestamp'],
)