From 275bb1be6d999c5a6137bc5a5b9a0ab559d84bb7 Mon Sep 17 00:00:00 2001 From: "John H. Tran" Date: Sun, 5 Aug 2012 23:53:28 -0700 Subject: [PATCH] collector exception on record_metering_data Fixes bug 1033413 Change-Id: I7f5ba8fb32ac21e0e7cb3c83c27e9b41beac4a29 --- ceilometer/collector/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ceilometer/collector/manager.py b/ceilometer/collector/manager.py index cc76833f..47d5455f 100644 --- a/ceilometer/collector/manager.py +++ b/ceilometer/collector/manager.py @@ -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'], )