Return early during provider installation if there is no config

backport-38560-1-15
Daniel Banck 4 days ago committed by Daniel Schmidt
parent 7a960db553
commit 74084a7705

@ -377,6 +377,10 @@ const (
// dependency lock data based on the configuration.
// The dependency lock file itself isn't updated here.
func (c *InitCommand) getProvidersFromConfig(ctx context.Context, config *configs.Config, upgrade bool, pluginDirs []string, flagLockfile string, view views.Init) (output bool, resultingLocks *depsfile.Locks, safeInitAction SafeInitAction, authResult *getproviders.PackageAuthenticationResult, diags tfdiags.Diagnostics) {
if config == nil {
return false, nil, SafeInitActionInvalid, nil, diags
}
ctx, span := tracer.Start(ctx, "install providers from config")
defer span.End()

Loading…
Cancel
Save