mirror of
https://github.com/hashicorp/terraform.git
synced 2026-06-08 16:35:25 -04:00
Return early during provider installation if there is no config
This commit is contained in:
parent
7a960db553
commit
74084a7705
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Reference in a new issue