Commit 97bce72
committed
Address review feedback: nil check, ambiguity detection, test fixes
- Add nil check for c.EC2 in resolveCurrentVPCID to prevent panic
- Detect ambiguous VPC resolution when private IP matches multiple VPCs
- Replace os.Unsetenv with t.Setenv for test isolation
- Replace flaky resolveCurrentVPCID test with nil EC2 client test
https://claude.ai/code/session_019cXyAQaLbKyaHWnZupcNUC1 parent f056d96 commit 97bce72
2 files changed
Lines changed: 32 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1215 | 1215 | | |
1216 | 1216 | | |
1217 | 1217 | | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
1218 | 1222 | | |
1219 | 1223 | | |
1220 | 1224 | | |
| |||
1244 | 1248 | | |
1245 | 1249 | | |
1246 | 1250 | | |
| 1251 | + | |
| 1252 | + | |
1247 | 1253 | | |
1248 | 1254 | | |
1249 | 1255 | | |
1250 | | - | |
1251 | | - | |
| 1256 | + | |
1252 | 1257 | | |
1253 | 1258 | | |
1254 | 1259 | | |
1255 | 1260 | | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
1256 | 1275 | | |
1257 | 1276 | | |
1258 | 1277 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | | - | |
33 | | - | |
| 31 | + | |
| 32 | + | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| |||
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
56 | 52 | | |
57 | 53 | | |
58 | 54 | | |
59 | 55 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | 56 | | |
64 | 57 | | |
65 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
66 | 64 | | |
67 | 65 | | |
0 commit comments