From d443bf1b565cdb139ed00354d821d0df5bb8ca70 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 16 Feb 2017 10:56:39 -0800 Subject: [PATCH] backend/local: allow nil modules (no config) if executing a plan --- backend/local/backend_apply.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/local/backend_apply.go b/backend/local/backend_apply.go index 30cbe0cf6..6b80aac34 100644 --- a/backend/local/backend_apply.go +++ b/backend/local/backend_apply.go @@ -23,7 +23,7 @@ func (b *Local) opApply( // If we have a nil module at this point, then set it to an empty tree // to avoid any potential crashes. - if op.Module == nil && !op.Destroy { + if op.Plan == nil && op.Module == nil && !op.Destroy { runningOp.Err = fmt.Errorf(strings.TrimSpace(applyErrNoConfig)) return }