backend/remote: Support refresh-only plans

This commit is contained in:
Chris Arcand 2021-05-03 22:58:40 -05:00 committed by CJ Horton
parent cb49a4c8d6
commit a436c7fa2f
1 changed files with 2 additions and 0 deletions

View File

@ -256,6 +256,8 @@ in order to capture the filesystem context the remote workspace expects:
switch op.PlanMode {
case plans.NormalMode:
// okay, but we don't need to do anything special for this
case plans.RefreshOnlyMode:
runOptions.RefreshOnly = tfe.Bool(true)
case plans.DestroyMode:
runOptions.IsDestroy = tfe.Bool(true)
default: