-
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
mssql
- upgrade to 2023-08-01-preview
and hashicorp/go-azure-sdk
#27073
Conversation
57499c8
to
81572c1
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.
Thanks @catriona-m other than the comment around the potential panic LGTM 🌈
|
||
d.Set("database_id", resp.DatabaseID) | ||
if model := resp.Model; model != nil { | ||
d.Set("location", azure.NormalizeLocation(model.Location)) |
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.
Should probably use
d.Set("location", azure.NormalizeLocation(model.Location)) | |
d.Set("location", location.NormalizeNilable(model.Location)) |
|
||
return tags.FlattenAndSet(d, resp.Tags) | ||
return tags.FlattenAndSet(d, resp.Model.Tags) |
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.
If model is nil this will panic since this is being done outside the nil check for model on line 134. Can we move this into the block where we nil check model and then return nil here instead
return tags.FlattenAndSet(d, resp.Model.Tags) | |
return nil |
…d of the successful read
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
long_term_retention_policy.immutable_backups_enabled
which has been removed in version 2023-08-01-previewTesting
Tests passing aside from tests also failing in main