backend/local: allow nil modules (no config) if executing a plan
This commit is contained in:
parent
1480d0c5b8
commit
d443bf1b56
|
@ -23,7 +23,7 @@ func (b *Local) opApply(
|
||||||
|
|
||||||
// If we have a nil module at this point, then set it to an empty tree
|
// If we have a nil module at this point, then set it to an empty tree
|
||||||
// to avoid any potential crashes.
|
// 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))
|
runningOp.Err = fmt.Errorf(strings.TrimSpace(applyErrNoConfig))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue