(host db.Host)
| 275 | } |
| 276 | |
| 277 | func hostDisplayName(host db.Host) string { |
| 278 | if host.FriendlyName != "" { |
| 279 | return host.FriendlyName |
| 280 | } |
| 281 | if host.Hostname != nil && *host.Hostname != "" { |
| 282 | return *host.Hostname |
| 283 | } |
| 284 | return host.ApiID |
| 285 | } |
| 286 | |
| 287 | func hostDisplayNameFromRow(host db.Host) string { |
| 288 | return hostDisplayName(host) |
no outgoing calls
no test coverage detected