Skip to content

fix: require id or label in network data source lookup#398

Open
giornetta wants to merge 1 commit into
masterfrom
fix-network-datasource-nil-deref
Open

fix: require id or label in network data source lookup#398
giornetta wants to merge 1 commit into
masterfrom
fix-network-datasource-nil-deref

Conversation

@giornetta

Copy link
Copy Markdown
Member

The civo_network data source's AtLeastOneOf validation included region, so a config setting only region passed validation but crashed the provider with a nil pointer dereference in dataSourceNetworkRead (foundNetwork is never assigned when neither id nor label is set).

This restricts AtLeastOneOf to id/label, turning the crash into a clear plan-time validation error. region remains optional for scoping the lookup.

@giornetta giornetta self-assigned this Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant