Skip to content

Commit

Permalink
aligned provider config
Browse files Browse the repository at this point in the history
  • Loading branch information
benPearce1 committed Jul 29, 2024
1 parent e4f0093 commit 8c7f7c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions octopusdeploy/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ func Provider() *schema.Provider {
"address": {
DefaultFunc: schema.EnvDefaultFunc("OCTOPUS_URL", nil),
Description: "The endpoint of the Octopus REST API",
Required: true,
Optional: true,
Type: schema.TypeString,
},
"api_key": {
DefaultFunc: schema.EnvDefaultFunc("OCTOPUS_APIKEY", nil),
Description: "The API key to use with the Octopus REST API",
Required: true,
Optional: true,
Type: schema.TypeString,
},
"space_id": {
Expand Down
5 changes: 1 addition & 4 deletions octopusdeploy_framework/framework_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ type octopusDeployFrameworkProvider struct {
var _ provider.Provider = (*octopusDeployFrameworkProvider)(nil)
var _ provider.ProviderWithMetaSchema = (*octopusDeployFrameworkProvider)(nil)
var _ provider.ProviderWithFunctions
var ProviderTypeName = "octopusdeploy"

func NewOctopusDeployFrameworkProvider() *octopusDeployFrameworkProvider {
return &octopusDeployFrameworkProvider{}
Expand Down Expand Up @@ -87,16 +86,14 @@ func (p *octopusDeployFrameworkProvider) Resources(ctx context.Context) []func()
}
}

func (p *octopusDeployFrameworkProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse) {
func (p *octopusDeployFrameworkProvider) Schema(_ context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse) {
resp.Schema = schema.Schema{
Attributes: map[string]schema.Attribute{
"address": schema.StringAttribute{
//Required: true,
Optional: true,
Description: "The endpoint of the Octopus REST API",
},
"api_key": schema.StringAttribute{
//Required: true,
Optional: true,
Description: "The API key to use with the Octopus REST API",
},
Expand Down

0 comments on commit 8c7f7c6

Please sign in to comment.