(host_name: &str)
| 115 | } |
| 116 | |
| 117 | fn host_identity(host_name: &str) -> String { |
| 118 | let source = machine_identity_source() |
| 119 | .unwrap_or_else(|| format!("hostname:{}", normalized_host_name(host_name))); |
| 120 | host_identity_from_source(&source) |
| 121 | } |
| 122 | |
| 123 | fn normalized_host_name(host_name: &str) -> String { |
| 124 | host_name.trim().to_ascii_lowercase() |
no test coverage detected