diff --git a/server/events/apply_executor.go b/server/events/apply_executor.go index 00d5f5d04d..61dda71c60 100644 --- a/server/events/apply_executor.go +++ b/server/events/apply_executor.go @@ -19,7 +19,7 @@ type ApplyExecutor struct { Terraform *terraform.DefaultClient RequireApproval bool Run *run.Run - Workspace AtlantisWorkspace + AtlantisWorkspace AtlantisWorkspace ProjectPreExecute *DefaultProjectPreExecutor Webhooks webhooks.Sender } @@ -37,7 +37,7 @@ func (a *ApplyExecutor) Execute(ctx *CommandContext) CommandResponse { ctx.Log.Info("confirmed pull request was approved") } - repoDir, err := a.Workspace.GetWorkspace(ctx.BaseRepo, ctx.Pull, ctx.Command.Workspace) + repoDir, err := a.AtlantisWorkspace.GetWorkspace(ctx.BaseRepo, ctx.Pull, ctx.Command.Workspace) if err != nil { return CommandResponse{Failure: "No workspace found. Did you run plan?"} } diff --git a/server/server.go b/server/server.go index 9fdb6043cf..7281c8630e 100644 --- a/server/server.go +++ b/server/server.go @@ -152,7 +152,7 @@ func NewServer(config Config) (*Server, error) { Terraform: terraformClient, RequireApproval: config.RequireApproval, Run: run, - Workspace: workspace, + AtlantisWorkspace: workspace, ProjectPreExecute: projectPreExecute, Webhooks: webhooksManager, }