select cleanups
This commit is contained in:
@@ -46,14 +46,12 @@ flags.DEFINE_integer('quota_personality_max_path_bytes', 255,
|
|||||||
|
|
||||||
|
|
||||||
def get_quota(context, project_id):
|
def get_quota(context, project_id):
|
||||||
rval = {
|
rval = {'instances': FLAGS.quota_instances,
|
||||||
'instances': FLAGS.quota_instances,
|
'cores': FLAGS.quota_cores,
|
||||||
'cores': FLAGS.quota_cores,
|
'volumes': FLAGS.quota_volumes,
|
||||||
'volumes': FLAGS.quota_volumes,
|
'gigabytes': FLAGS.quota_gigabytes,
|
||||||
'gigabytes': FLAGS.quota_gigabytes,
|
'floating_ips': FLAGS.quota_floating_ips,
|
||||||
'floating_ips': FLAGS.quota_floating_ips,
|
'metadata_items': FLAGS.quota_metadata_items}
|
||||||
'metadata_items': FLAGS.quota_metadata_items,
|
|
||||||
}
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
quota = db.quota_get(context, project_id)
|
quota = db.quota_get(context, project_id)
|
||||||
|
|||||||
Reference in New Issue
Block a user