Skip to content

Commit 9cdd2f1

Browse files
author
Edgar López
committed
fix: set project id in read
1 parent d5cda7e commit 9cdd2f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mongodbatlas/resource_mongodbatlas_encryption_at_rest.go

+3
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,9 @@ func resourceMongoDBAtlasEncryptionAtRestRead(d *schema.ResourceData, meta inter
254254
return fmt.Errorf(errorAlertEncryptionAtRestSetting, "google_cloud_kms", d.Id(), err)
255255
}
256256
}
257+
if err = d.Set("project_id", d.Id()); err != nil {
258+
return fmt.Errorf(errorAlertEncryptionAtRestSetting, "project_id", d.Id(), err)
259+
}
257260

258261
return nil
259262
}

0 commit comments

Comments
 (0)