terraform: apply works if no state is returned

This commit is contained in:
Mitchell Hashimoto 2014-06-18 21:14:34 -07:00
parent 2dff411679
commit b62ff0412f
1 changed files with 6 additions and 0 deletions

View File

@ -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