git_reinstall.py 文件源码

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

项目:charm-nova-cloud-controller 作者: openstack 项目源码 文件源码
def git_reinstall():
    """Reinstall from source and restart services.

    If the openstack-origin-git config option was used to install openstack
    from source git repositories, then this action can be used to reinstall
    from updated git repositories, followed by a restart of services."""
    if not git_install_requested():
        action_fail('openstack-origin-git is not configured')
        return

    try:
        git_install(config('openstack-origin-git'))
        config_changed()
    except:
        action_set({'traceback': traceback.format_exc()})
        action_fail('git-reinstall resulted in an unexpected error')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号