From e76610968545e879498ff63021c03b131015d577 Mon Sep 17 00:00:00 2001 From: jichenjc Date: Sat, 19 Nov 2016 16:11:26 +0800 Subject: [PATCH] Enhancement comments on CountableResource The comments for CountableResource give a misleading sample list, better to given exactly same resource as the sample list like security_group_member or keypair etc Change-Id: Ie36498f33a4f3cb5d9175b7d7044d35601cb7b6d --- nova/quota.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nova/quota.py b/nova/quota.py index 022ebe7fe446..cb7122d2d292 100644 --- a/nova/quota.py +++ b/nova/quota.py @@ -1404,9 +1404,10 @@ class CountableResource(AbsoluteResource): """Initializes a CountableResource. Countable resources are those resources which directly - correspond to objects in the database, i.e., instances, cores, - etc., but for which a count by project ID is inappropriate. A - CountableResource must be constructed with a counting + correspond to objects in the database, but for which a count + by project ID is inappropriate e.g. security_group_rules, + keypairs, etc. + A CountableResource must be constructed with a counting function, which will be called to determine the current counts of the resource.