host.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:masakari-monitors 作者: openstack 项目源码 文件源码
def init_host(self):
        """Initialization for hostmonitor."""
        try:
            # Determine dynamic load driver from configuration.
            driver_name = CONF.host.monitoring_driver

            # Load the driver to global.
            self.driver = driver.DriverManager(
                namespace='hostmonitor.driver',
                name=driver_name,
                invoke_on_load=True,
                invoke_args=(),
            )
        except Exception as e:
            LOG.exception(
                "Exception caught during initializing hostmonitor: %s", e)
            os._exit(1)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号