-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: send an empty array for IP ranges instead of null #516
Conversation
More comprehensive Go sample courtesy of @displague: https://go.dev/play/p/aEANmMgMV0A In most situations a nil slice and an empty slice are functionally equivalent, but JSON serialization is one situation where they are not functionally equivalent. |
Test passing again in CI: https://github.com/equinix/terraform-provider-equinix/actions/runs/7493501381/job/20399350107#step:5:500 |
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #516 +/- ##
==========================================
- Coverage 60.11% 59.11% -1.01%
==========================================
Files 99 96 -3
Lines 20045 19842 -203
==========================================
- Hits 12051 11729 -322
- Misses 7691 7822 +131
+ Partials 303 291 -12 ☔ View full report in Codecov by Sentry. |
The |
bbf4078
to
b9136db
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. I didn't try it but I tried the playground example
Fix #515.
The
TestAccMetalVRF_withIPRanges
started failing recently with an error thatip_ranges
cannot be null. It appears this test failure was caused by #509, which consolidated theexpandListToStringList
andIfArrToStringArr
functions.This updates the
IfArrToStringArr
converter to match the oldexpandListToStringList
implementation, which fixes the failing test.