Skip to content

Commit

Permalink
Merge pull request runatlantis#220 from hootsuite/terraform0.11
Browse files Browse the repository at this point in the history
Rename Workspace to AtlantisWorkspace to avoid confusion
  • Loading branch information
lkysow authored Dec 18, 2017
2 parents df05f8b + f72b674 commit a9ada64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions server/events/apply_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type ApplyExecutor struct {
Terraform *terraform.DefaultClient
RequireApproval bool
Run *run.Run
Workspace AtlantisWorkspace
AtlantisWorkspace AtlantisWorkspace
ProjectPreExecute *DefaultProjectPreExecutor
Webhooks webhooks.Sender
}
Expand All @@ -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?"}
}
Expand Down
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down

0 comments on commit a9ada64

Please sign in to comment.