(hosts []coreansible.InventoryHost, limit string)
| 1932 | } |
| 1933 | |
| 1934 | func selectDirectBootstrapTargets(hosts []coreansible.InventoryHost, limit string) []coreansible.InventoryHost { |
| 1935 | out := make([]coreansible.InventoryHost, 0, len(hosts)) |
| 1936 | for _, host := range hosts { |
| 1937 | if matchesBootstrapLimit(host, limit) { |
| 1938 | out = append(out, host) |
| 1939 | } |
| 1940 | } |
| 1941 | return out |
| 1942 | } |
| 1943 | |
| 1944 | func matchesBootstrapLimit(host coreansible.InventoryHost, rawLimit string) bool { |
| 1945 | limit := strings.TrimSpace(rawLimit) |
no test coverage detected