Commit 99c92d3
get_nbd_info: use hostname if cert parsing fails
If the x509 library raises an exception when trying to parse a host's
certificate and read a subject out of it, log the error and fall back
to using Host.hostname.
Signed-off-by: Thomas Sanders <[email protected]>1 parent f712756 commit 99c92d3
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1072 | 1072 | | |
1073 | 1073 | | |
1074 | 1074 | | |
1075 | | - | |
| 1075 | + | |
1076 | 1076 | | |
1077 | 1077 | | |
1078 | 1078 | | |
1079 | 1079 | | |
1080 | 1080 | | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
1081 | 1085 | | |
1082 | 1086 | | |
1083 | 1087 | | |
| |||
0 commit comments