mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
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
|
||||
// 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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user