Following up patch of 7d0f8ab360

It should be dbapi instance, a mistake when renaming instances to
servers.

Change-Id: I5a9ca3720c7b261737dacb2cfbb671a0849de051
This commit is contained in:
Zhenguo Niu
2017-05-09 16:47:58 +08:00
parent 164ca9844e
commit 52449d4019
15 changed files with 31 additions and 31 deletions

View File

@@ -38,7 +38,7 @@ class Quota(base.MoganObject, object_base.VersionedObjectDictCompat):
# Version 1.0: Initial version
VERSION = '1.0'
dbapi = dbapi.get_server()
dbapi = dbapi.get_instance()
fields = {
'id': object_fields.IntegerField(),
@@ -164,7 +164,7 @@ class DbQuotaDriver(object):
The default driver utilizes the local database.
"""
dbapi = dbapi.get_server()
dbapi = dbapi.get_instance()
def get_project_quotas(self, context, resources, project_id, usages=True):
"""Retrieve quotas for a project.