engine: resources: Print a message on empty file creation

We don't see this event happening which is confusing. There might be
other cases we didn't handle cleanly.
This commit is contained in:
James Shubin
2025-03-27 01:03:01 -04:00
parent 8ff187b4e9
commit f71e623931

View File

@@ -1002,6 +1002,7 @@ func (obj *FileRes) stateCheckApply(ctx context.Context, apply bool) (bool, erro
if err := f.Close(); err != nil { if err := f.Close(); err != nil {
return false, errwrap.Wrapf(err, "problem closing empty file") return false, errwrap.Wrapf(err, "problem closing empty file")
} }
obj.init.Logf("created")
return false, nil // defer the Content != nil work to later... return false, nil // defer the Content != nil work to later...
} }