-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix panic when import id is empty string
We can not detect the empty ID earlier (e.g. during config parsing) since it's an HCL expression to be evaluated. Since go uses the default value of "" for strings which is the value we try to guard against we can not properly differciate between an invalid configuration and the user not wanting to import the resource. We could change the type of the importID field to *string to make this differenciation, but that seemed to invasive for the scope of this bug. Fixes #33505
- Loading branch information
1 parent
64cd0da
commit 14a8009
Showing
2 changed files
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters