コード例 #1
0
def rebuild_container_pool():
    hosts = Host.query.all()
    for host in hosts:
        key = 'eru:agent:%s:containers:meta' % host.name
        rds.delete(key)
        for c in host.containers.all():
            add_container_for_agent(c)
コード例 #2
0
def rebuild_container_pool():
    hosts = Host.query.all()
    for host in hosts:
        key = 'eru:agent:%s:containers:meta' % host.name
        rds.delete(key)
        for c in host.containers.all():
            add_container_for_agent(c)
コード例 #3
0
def migrate_container_set(host):
    containers = Container.get_multi_by_host(host)
    for c in containers:
        add_container_for_agent(c)
コード例 #4
0
def migrate_container_set(host):
    containers = Container.get_multi_by_host(host)
    for c in containers:
        add_container_for_agent(c)