From 0294162bea03a5530c619cc06f53367997e5d3a9 Mon Sep 17 00:00:00 2001 From: Jubril Oyetunji Date: Mon, 29 Jul 2024 13:29:06 +0100 Subject: [PATCH] fix: export project datasource --- internal/provider/provider.go | 1 + internal/resources/datasource_project.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/provider/provider.go b/internal/provider/provider.go index e0c6b94..7e5db7c 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -135,6 +135,7 @@ func (p *qernalProvider) DataSources(_ context.Context) []func() datasource.Data qernalresource.NeworganisationDataSource, qernalresource.NewhostDataSource, qernalresource.NewproviderDataSource, + qernalresource.NewprojectDataSource, } } diff --git a/internal/resources/datasource_project.go b/internal/resources/datasource_project.go index 88869c8..afe0b1e 100644 --- a/internal/resources/datasource_project.go +++ b/internal/resources/datasource_project.go @@ -43,7 +43,7 @@ func (r *projectDataSource) Configure(ctx context.Context, req datasource.Config // Metadata returns the data source type name. func (d *projectDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_project_secret" + resp.TypeName = req.ProviderTypeName + "_project" } // Schema defines the schema for the data source.