Commit 7bf3b9c
committed
Improve robustness of get_pod_ip() function
In cases where single-stack IPv6 is used, it's possible that
an unhandled exception is raised since we first attempt
to verify ipv4 connectivity and fail before checking ipv6.
This change makes the get_pod_ip() function more robust
by ensuring that both are checked before raising an error.
Fixes #478
Jira: https://issues.redhat.com/browse/OSPRH-19216
Signed-off-by: Brendan Shephard <[email protected]>1 parent 1a0c8d3 commit 7bf3b9c
1 file changed
+19
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
68 | 71 | | |
69 | 72 | | |
70 | 73 | | |
| |||
73 | 76 | | |
74 | 77 | | |
75 | 78 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
86 | 94 | | |
87 | 95 | | |
88 | 96 | | |
| |||
0 commit comments