fix: new region field in object storage forces recreation (#689)

This commit is contained in:
Marcel Jacek 2025-02-21 15:12:39 +01:00 committed by GitHub
parent 67f5fe37b9
commit 8f2435be05
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 0 deletions

View file

@ -248,6 +248,9 @@ func (r *bucketResource) Read(ctx context.Context, req resource.ReadRequest, res
projectId := model.ProjectId.ValueString()
bucketName := model.Name.ValueString()
region := model.Region.ValueString()
if region == "" {
region = r.providerData.Region
}
ctx = tflog.SetField(ctx, "project_id", projectId)
ctx = tflog.SetField(ctx, "name", bucketName)