Skip to content

Commit

Permalink
Update cli/bpmetadata/tfconfig.go
Browse files Browse the repository at this point in the history
Co-authored-by: Bharath KKB <[email protected]>
  • Loading branch information
qz267 and bharathkkb authored Sep 6, 2024
1 parent 1756002 commit 375c7a4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cli/bpmetadata/tfconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,10 @@ func parseBlueprintVersion(versionsFile *hcl.File, diags hcl.Diagnostics) (strin
// from the required_providers block.
func parseBlueprintProviderVersions(versionsFile *hcl.File) ([]*ProviderVersion, error) {
var v []*ProviderVersion
var diags hcl.Diagnostics

//parse out the required providers from the config
// parse out the required providers from the config
var hclModule tfconfig.Module
hclModule.RequiredProviders = make(map[string]*tfconfig.ProviderRequirement)
hclModuleDiag := tfconfig.LoadModuleFromFile(versionsFile, &hclModule)
diags = append(diags, hclModuleDiag...)
diags := tfconfig.LoadModuleFromFile(versionsFile, &hclModule)
err := hasHclErrors(diags)
if err != nil {
return nil, err
Expand Down

0 comments on commit 375c7a4

Please sign in to comment.