client_proxy.py 文件源码

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

项目:nova-dpm 作者: openstack 项目源码 文件源码
def import_zhmcclient():
    """Lazy initialization for zhmcclient

    This function helps in lazy loading zhmclient. The zhmcclient can
    otherwise be set to fakezhmcclient for unittest framework
    """

    LOG.debug("get_zhmcclient")
    requests.packages.urllib3.disable_warnings()

    global zhmcclient
    if zhmcclient is None:
        zhmcclient = importutils.import_module('zhmcclient')

    return zhmcclient
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号