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

Function sshReachabilityString

internal/ui/plugins/ansible/plugin.go:2023–2031  ·  view source on GitHub ↗
(v *bool)

Source from the content-addressed store, hash-verified

2021}
2022
2023func sshReachabilityString(v *bool) string {
2024 if v == nil {
2025 return "n/a"
2026 }
2027 if *v {
2028 return "reachable"
2029 }
2030 return "unreachable"
2031}
2032
2033func firstLine(s string) string {
2034 lines := strings.Split(strings.TrimSpace(s), "\n")

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected