designate_bind_handlers.py 文件源码

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

项目:charm-designate-bind 作者: openstack 项目源码 文件源码
def setup_sync_target_alone():
    '''If this is the only unit in the application then setup a sync target.
    This will likely by empty as zones.initialised is only unset when a unit
    frst comes up but the presence of the target allows subsequent units to
    bootstrap if leadership flips to them as they come up'''
    if hookenv.is_leader():
        designate_bind.setup_sync()
        reactive.set_state('zones.initialised')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号