Skip to content

Commit

Permalink
Add HasPulumiProviderName check for use in terraform converter.
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonpollack23 committed Oct 14, 2024
1 parent 678d0fd commit b699069
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/tf2pulumi/il/plugin_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,12 @@ var pulumiNames = map[string]string{
"template": "terraform-template",
}

// HasPulumiProviderName returns true if the given Terraform provider has a corresponding Pulumi provider name.
func HasPulumiProviderName(terraformProviderName string) bool {
_, hasPulumiName := pulumiNames[terraformProviderName]
return hasPulumiName
}

// GetPulumiProviderName returns the Pulumi name for the given Terraform provider. In most cases the two names will be
// identical.
func GetPulumiProviderName(terraformProviderName string) string {
Expand Down

0 comments on commit b699069

Please sign in to comment.