mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
terraform: apply works if no state is returned
This commit is contained in:
parent
2dff411679
commit
b62ff0412f
@ -142,6 +142,12 @@ func (t *Terraform) applyWalkFn(
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// If no state was returned, then no variables were updated so
|
||||
// just return.
|
||||
if rs == nil {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
// Update the resulting diff
|
||||
l.Lock()
|
||||
result.Resources[r.Id] = rs
|
||||
|
Loading…
Reference in New Issue
Block a user