From 7b95818699217ed3f6de28c3bc485e31fcbeb716 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 11 Oct 2012 18:52:16 +0200 Subject: [PATCH] Set correct timestamp on floatingip counter Change-Id: Ifda6a9c4a62cce19cdf9f924a8fa8ee7f74a27ba Signed-off-by: Julien Danjou --- ceilometer/network/floatingip.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ceilometer/network/floatingip.py b/ceilometer/network/floatingip.py index bc2aa9e6..39fc39e0 100644 --- a/ceilometer/network/floatingip.py +++ b/ceilometer/network/floatingip.py @@ -19,6 +19,7 @@ from nova import exception from ceilometer.openstack.common import log +from ceilometer.openstack.common import timeutils from ceilometer import counter from ceilometer.central import plugin @@ -44,7 +45,7 @@ class FloatingIPPollster(plugin.CentralPollster): user_id=None, project_id=ip.project_id, resource_id=ip.id, - timestamp=None, # FIXME(dhellmann): This needs to be now() + timestamp=timeutils.utcnow().isoformat(), resource_metadata={ 'address': ip.address, 'fixed_ip_id': ip.fixed_ip_id,