def setup(self):
self.default_TTL = CONF.ProjectManager.default_TTL
self.default_share = CONF.ProjectManager.default_share
db_connection = CONF.ProjectManager.db_connection
pool_size = CONF.ProjectManager.db_pool_size
pool_recycle = CONF.ProjectManager.db_pool_recycle
max_overflow = CONF.ProjectManager.db_max_overflow
try:
self.db_engine = create_engine(db_connection,
pool_size=pool_size,
pool_recycle=pool_recycle,
max_overflow=max_overflow)
except SQLAlchemyError as ex:
LOG.error(ex)
raise ex
self.configured = False
self.keystone_manager = self.getManager("KeystoneManager")
self.createTable()
project_manager.py 文件源码
python
阅读 27
收藏 0
点赞 0
评论 0
评论列表
文章目录