Skip to content

Commit

Permalink
Provider block existance check for azapi
Browse files Browse the repository at this point in the history
  • Loading branch information
magodo authored and wuxu92 committed Oct 26, 2023
1 parent 1bbab84 commit a035554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/meta/base_meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ func (meta *baseMeta) initProvider(ctx context.Context) error {
return err
}

if module.ProviderConfigs["azurerm"] == nil {
if module.ProviderConfigs[meta.providerName] == nil {
log.Printf("[INFO] Output directory doesn't contain provider setting, create one then")
cfgFile := filepath.Join(meta.outdir, meta.outputFileNames.ProviderFileName)
// #nosec G306
Expand Down

0 comments on commit a035554

Please sign in to comment.