Skip to content

Commit

Permalink
Update connection config variable definition to use the latest hcl sy…
Browse files Browse the repository at this point in the history
…ntax
  • Loading branch information
misraved committed Dec 12, 2023
1 parent e7774d6 commit 843339a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
9 changes: 1 addition & 8 deletions stripe/connection_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,10 @@ package stripe

import (
"github.com/turbot/steampipe-plugin-sdk/v5/plugin"
"github.com/turbot/steampipe-plugin-sdk/v5/plugin/schema"
)

type stripeConfig struct {
APIKey *string `cty:"api_key"`
}

var ConfigSchema = map[string]*schema.Attribute{
"api_key": {
Type: schema.TypeString,
},
APIKey *string `hcl:"api_key"`
}

func ConfigInstance() interface{} {
Expand Down
1 change: 0 additions & 1 deletion stripe/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ func Plugin(ctx context.Context) *plugin.Plugin {
Name: "steampipe-plugin-stripe",
ConnectionConfigSchema: &plugin.ConnectionConfigSchema{
NewInstance: ConfigInstance,
Schema: ConfigSchema,
},
DefaultTransform: transform.FromGo().NullIfZero(),
DefaultGetConfig: &plugin.GetConfig{
Expand Down

0 comments on commit 843339a

Please sign in to comment.