Skip to content

Commit

Permalink
Merge pull request #497 from MusicDin/fix/rm-provider-project
Browse files Browse the repository at this point in the history
Remove project attribute on provider
  • Loading branch information
simondeziel authored Jul 10, 2024
2 parents 32291df + 64ace81 commit e6a340e
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ type LxdProviderRemoteModel struct {
type LxdProviderModel struct {
Remotes []LxdProviderRemoteModel `tfsdk:"remote"`
ConfigDir types.String `tfsdk:"config_dir"`
Project types.String `tfsdk:"project"`
AcceptRemoteCertificate types.Bool `tfsdk:"accept_remote_certificate"`
GenerateClientCertificates types.Bool `tfsdk:"generate_client_certificates"`
}
Expand Down Expand Up @@ -83,11 +82,6 @@ func (p *LxdProvider) Schema(_ context.Context, _ provider.SchemaRequest, resp *
Optional: true,
Description: "Accept the server certificate.",
},

"project": schema.StringAttribute{
Optional: true,
Description: "The project where project-scoped resources will be created. Can be overridden in individual resources. (default = default)",
},
},

Blocks: map[string]schema.Block{
Expand Down Expand Up @@ -216,12 +210,6 @@ func (p *LxdProvider) Configure(ctx context.Context, req provider.ConfigureReque
}
}

// Determine project.
project := data.Project.ValueString()
if project != "" {
config.ProjectOverride = project
}

// Initialize global LxdProvider struct.
// This struct is used to store information about this Terraform
// provider's configuration for reference throughout the lifecycle.
Expand Down

0 comments on commit e6a340e

Please sign in to comment.