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:
@@ -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...
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user