Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
leg100 committed Sep 19, 2021
1 parent d794c34 commit 0b72f4a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions workspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,13 @@ func UpdateWorkspace(ws *Workspace, opts *tfe.WorkspaceUpdateOptions) (*Workspac
if opts.FileTriggersEnabled != nil {
ws.FileTriggersEnabled = *opts.FileTriggersEnabled
}
if opts.Operations != nil {
if *opts.Operations {
ws.ExecutionMode = "remote"
} else {
ws.ExecutionMode = "local"
}
}
if opts.QueueAllRuns != nil {
ws.QueueAllRuns = *opts.QueueAllRuns
}
Expand Down

0 comments on commit 0b72f4a

Please sign in to comment.