Issue #21307 has been updated by Josh Partlow. Status changed from In Topic Branch Pending Review to Merged - Pending Release Target version set to 3.3.0
merged in 968113f ---------------------------------------- Bug #21307: File monitoring treats absent files as always changed. https://projects.puppetlabs.com/issues/21307#change-95103 * Author: Adrien Thebo * Status: Merged - Pending Release * Priority: Normal * Assignee: * Category: parser * Target version: 3.3.0 * Affected Puppet version: 2.7.12 * Keywords: * Branch: https://github.com/puppetlabs/puppet/pull/1770 ---------------------------------------- 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.
