Issue #21307 has been reported by Adrien Thebo.

----------------------------------------
Bug #21307: File monitoring treats absent files as always changed.
https://projects.puppetlabs.com/issues/21307

* Author: Adrien Thebo
* Status: Accepted
* Priority: Normal
* Assignee: 
* Category: parser
* Target version: 
* Affected Puppet version: 2.7.12
* Keywords: 
* Branch: 
----------------------------------------
The implementation of `Puppet::Util::LoadedFile` tracks a file by monitoring 
the file ctime. If a file is nonexistent and cannot have a ctime, every time 
the file is checked for changes ctime will be set to the current time. Since 
this value is constantly changing the file will always be marked as changed.

### Expected behavior

If a file is initially absent and is still absent when rechecked, it should be 
unchanged.

### Actual behavior

A file that is absent will be marked as always changed.

- - -


Note: as of commit 3a19fff52c15266a3171b9bcf93bc1db1788c3b8 the LoadedFile has 
been refactored and renamed WatchedFile but this behavior is still present.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to