-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
azurerm_mssql_database
- update nil validation for license_type
#26850
Conversation
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.
Thanks @neil-yechenwei this looks mostly fine and seems to fix the issue. Could you please address the one comment left in-line? This should be good to go then.
name = "acctest-db-%[2]d" | ||
server_id = azurerm_mssql_server.test.id | ||
sku_name = "GP_S_Gen5_2" | ||
license_type = null |
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.
Omitting this is equivalent to license_type = null
. Could you please remove this instead of explicitly setting to null
license_type = null |
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.
Removed it
@stephybun , thanks for the comments. I updated PR. Please take another look. |
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.
Thanks @neil-yechenwei LGTM 👍
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
Community Note
Description
As there is Computed attribute on
license_type
, so TF would always get the value from previous apply while updating. Hence, TF would return this custom error. So I raised this PR to fix this issue.PR Checklist
For example: “
resource_name_here
- description of change e.g. adding propertynew_property_name_here
”Changes to existing Resource / Data Source
Testing
Below failed test cases are also failed with same error on Teamcity Daily Run. So they're not related with this PR.
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_mssql_database
- update nil validation forlicense_type
This is a (please select all that apply):
Related Issue(s)
Fixes #26839
Note
If this PR changes meaningfully during the course of review please update the title and description as required.