Skip to content

Commit

Permalink
fix datasource project build faile
Browse files Browse the repository at this point in the history
  • Loading branch information
HuyPhanNguyen committed Jul 29, 2024
1 parent aab789e commit 86fe5c0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions octopusdeploy_framework/datasource_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"github.com/OctopusDeploy/terraform-provider-octopusdeploy/octopusdeploy_framework/schemas"
"github.com/OctopusDeploy/terraform-provider-octopusdeploy/octopusdeploy_framework/util"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/types"
"time"
)
Expand Down Expand Up @@ -40,10 +39,7 @@ func (p *projectsDataSource) Metadata(_ context.Context, req datasource.Metadata
}

func (p *projectsDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
resp.Schema = schema.Schema{
Description: "Provides information about existing projects.",
Attributes: schemas.GetProjectDataSourceSchema(),
}
resp.Schema = schemas.GetProjectDataSourceSchema()
}

func (p *projectsDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) {
Expand Down

0 comments on commit 86fe5c0

Please sign in to comment.