MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / selectDirectBootstrapTargets

Function selectDirectBootstrapTargets

internal/ui/plugins/ansible/plugin.go:1934–1942  ·  view source on GitHub ↗
(hosts []coreansible.InventoryHost, limit string)

Source from the content-addressed store, hash-verified

1932}
1933
1934func 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
1944func matchesBootstrapLimit(host coreansible.InventoryHost, rawLimit string) bool {
1945 limit := strings.TrimSpace(rawLimit)

Callers 1

runBootstrapDirectMethod · 0.85

Calls 1

matchesBootstrapLimitFunction · 0.85

Tested by

no test coverage detected