There was an error while loading. Please reload this page.
1 parent 9e361dc commit 7e50e42Copy full SHA for 7e50e42
1 file changed
lib/tools/tasks/update.py
@@ -36,11 +36,10 @@ def update_pools(inventory: Inventory) -> None:
36
pools.append(p)
37
hosting_pool = inventory_hosts[host]["hosting_pool"]
38
if hosting_pool is not None:
39
- # we assume all hosts are nested, not only master
40
if nested_hosts.get(hosting_pool) is not None:
41
- nested_hosts[hosting_pool].extend(p.hosts)
+ nested_hosts[hosting_pool].extend([h for h in p.hosts if h.is_nested])
42
else:
43
- nested_hosts[hosting_pool] = p.hosts
+ nested_hosts[hosting_pool] = [h for h in p.hosts if h.is_nested]
44
except NotAMasterHostError:
45
logger.warning(f"[{host}] Skipping: not a master host")
46
0 commit comments