Skip to content

Commit 24a44d7

Browse files
committed
Post-rebase fix
1 parent 89f809a commit 24a44d7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

internal/command/init.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,10 @@ func (c *InitCommand) initCloud(ctx context.Context, root *configs.Module, extra
159159
return back, true, diags
160160
}
161161

162-
func (c *InitCommand) initBackend(ctx context.Context, root *configs.Module, extraConfig arguments.FlagNameValueSlice, viewType arguments.ViewType, configLocks *depsfile.Locks, view views.Init) (be backend.Backend, output bool, diags tfdiags.Diagnostics) {
162+
func (c *InitCommand) initBackend(ctx context.Context, root *configs.Module, initArgs *arguments.Init, configLocks *depsfile.Locks, view views.Init) (be backend.Backend, output bool, diags tfdiags.Diagnostics) {
163+
extraConfig := initArgs.BackendConfig
164+
viewType := initArgs.ViewType
165+
163166
ctx, span := tracer.Start(ctx, "initialize backend")
164167
_ = ctx // prevent staticcheck from complaining to avoid a maintenance hazard of having the wrong ctx in scope here
165168
defer span.End()

internal/command/init_run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ func (c *InitCommand) run(initArgs *arguments.Init, view views.Init) int {
174174
// initBackend has new parameters that aren't relevant to the original (unpluggable) version of the init command logic here.
175175
// So for this version of the init command, we pass in empty locks intentionally.
176176
emptyLocks := depsfile.NewLocks()
177-
back, backendOutput, backDiags = c.initBackend(ctx, rootModEarly, initArgs.BackendConfig, initArgs.ViewType, emptyLocks, view)
177+
back, backendOutput, backDiags = c.initBackend(ctx, rootModEarly, initArgs, emptyLocks, view)
178178
default:
179179
// load the previously-stored backend config
180180
back, backDiags = c.Meta.backendFromState(ctx)

0 commit comments

Comments
 (0)