actions.py 文件源码

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

项目:charm-swift-storage 作者: openstack 项目源码 文件源码
def resume(args):
    """Resume all the swift services.

    @raises Exception if any services fail to start
    """
    for service in args.services:
        started = service_resume(service)
        if not started:
            raise Exception("{} didn't start cleanly.".format(service))
    with HookData()():
        kv().set('unit-paused', False)
    set_os_workload_status(CONFIGS, REQUIRED_INTERFACES,
                           charm_func=assess_status)


# A dictionary of all the defined actions to callables (which take
# parsed arguments).
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号