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

Function chooseHostTarget

internal/plugins/ansible/inventory.go:553–562  ·  view source on GitHub ↗
(candidates ...string)

Source from the content-addressed store, hash-verified

551}
552
553func chooseHostTarget(candidates ...string) string {
554 for _, c := range candidates {
555 trimmed := strings.TrimSpace(c)
556 if trimmed != "" {
557 return trimmed
558 }
559 }
560
561 return ""
562}
563
564func sanitizeIdentifier(raw string) string {
565 raw = strings.ToLower(strings.TrimSpace(raw))

Callers 1

BuildInventoryWithFormatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected