From d0544e606f442a4213aff8271ad382698ae2087c Mon Sep 17 00:00:00 2001 From: Aleksander Zaruczewski Date: Mon, 23 Oct 2023 05:34:14 -0400 Subject: [PATCH] fix(mysql): use correct read context fn --- CHANGELOG.md | 3 ++- internal/sdkprovider/service/mysql/mysql_user.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 95fc8b215..c9bf9cf9a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,10 +6,11 @@ nav_order: 1 # Changelog -- Deprecating `project_user`, `account_team` and `account_team_member resources` ## [5.0.0] - YYYY-MM-DD - Migrate `aiven_service_integration` to the Plugin Framework +- Deprecating `project_user`, `account_team` and `account_team_member resources` +- Fix incorrect read context in MySQL user resource ## [4.9.1] - 2023-10-03 diff --git a/internal/sdkprovider/service/mysql/mysql_user.go b/internal/sdkprovider/service/mysql/mysql_user.go index bab8ab3ae..c95334065 100644 --- a/internal/sdkprovider/service/mysql/mysql_user.go +++ b/internal/sdkprovider/service/mysql/mysql_user.go @@ -64,7 +64,7 @@ func ResourceMySQLUser() *schema.Resource { Description: "The MySQL User resource allows the creation and management of Aiven MySQL Users.", CreateContext: resourceMySQLUserCreate, UpdateContext: resourceMySQLUserUpdate, - ReadContext: schemautil.DatasourceServiceUserRead, + ReadContext: schemautil.ResourceServiceUserRead, DeleteContext: schemautil.ResourceServiceUserDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext,