From a801bdfb170e338133cf7faaaa97f0b7dcc0abc7 Mon Sep 17 00:00:00 2001 From: "Yunhong, Jiang" Date: Wed, 16 Jan 2013 22:44:46 +0800 Subject: Remove the ImageSizePollster We can use generator to achieve this purpose simply. Change-Id: Id05c33fb2aa89fd02035c717417d0181e975c3ec Signed-off-by: Yunhong, Jiang --- ceilometer/image/glance.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'ceilometer/image') diff --git a/ceilometer/image/glance.py b/ceilometer/image/glance.py index 743d6598..06a9d420 100644 --- a/ceilometer/image/glance.py +++ b/ceilometer/image/glance.py @@ -96,12 +96,6 @@ class ImagePollster(_Base): timestamp=timeutils.isotime(), resource_metadata=self.extract_image_metadata(image), ) - - -class ImageSizePollster(_Base): - - def get_counters(self, manager, context): - for image in self.iter_images(): yield counter.Counter( name='image.size', type=counter.TYPE_GAUGE, -- cgit v1.2.1