Commit df28d9b
committed
Add WithInternetAccess() opt-in and fix default override ordering
Add ec2.WithInternetAccess() VMOption as the explicit opt-in counterpart
to WithoutInternetAccess(). Provisioners that default to no-internet now
prepend the default option (instead of appending it) so that caller-provided
ec2.WithInternetAccess() can override it.
Tests that need to reach external hosts must now explicitly pass
ec2.WithInternetAccess() via their provisioner options.1 parent 5b0ef8c commit df28d9b
2 files changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| |||
0 commit comments