Skip to content

Commit

Permalink
Include Rootly provider source in generated provider.tf (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmingoia authored Mar 20, 2024
1 parent 3b2f1df commit 28d78fd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions generators/rootly/templates/provider.go.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ func (p *RootlyProvider) GetName() string {
return "rootly"
}
func (p *RootlyProvider) GetSource() string {
return "rootlyhq/rootly"
}
func (p *RootlyProvider) GetConfig() cty.Value {
return cty.ObjectVal(map[string]cty.Value{
"api_token": cty.StringVal(p.apiKey),
Expand Down
6 changes: 5 additions & 1 deletion providers/rootly/rootly_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ func (p *RootlyProvider) GetName() string {
return "rootly"
}

func (p *RootlyProvider) GetSource() string {
return "rootlyhq/rootly"
}

func (p *RootlyProvider) GetConfig() cty.Value {
return cty.ObjectVal(map[string]cty.Value{
"api_token": cty.StringVal(p.apiKey),
Expand Down Expand Up @@ -2723,4 +2727,4 @@ func (p *RootlyProvider) GetSupportedService() map[string]terraformutils.Service
"webhooks_endpoint": &WebhooksEndpointGenerator{},
"secret": &SecretGenerator{},
}
}
}

0 comments on commit 28d78fd

Please sign in to comment.