

def execute_pool(pool, action):
    commands = chain.from_iterable((deploy.load_commands(d.name, d.settings, action) for d in pool.deploy))
    run_in_pool(pool, commands)

dataset/ETHPy150Open davidhalter/depl/depl/hosts.py execute_pool/original