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.