Skip to content

Conversation

@rsharmaInfoblox
Copy link
Collaborator

Fixes a crash caused by ExtractResourceRef panicking on malformed refs without a /. The function now safely returns the original ref when parsing fails, preventing index-out-of-bounds errors. This ensures Terraform shows a proper API/diagnostic error instead of the provider crashing.

@rsharmaInfoblox rsharmaInfoblox marked this pull request as ready for review November 28, 2025 06:36
@rsharmaInfoblox rsharmaInfoblox changed the title NPA-1323: Added check for handling invalid ref during import NPA-1323: Added check for handling invalid ref Nov 28, 2025
Copy link
Collaborator

@VishrutiBuddhadev VishrutiBuddhadev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@unasra unasra merged commit 70af369 into infobloxopen:main Dec 1, 2025
3 checks passed
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.

3 participants