summaryrefslogtreecommitdiffstats
path: root/lib/puppet/indirector
diff options
context:
space:
mode:
authorJesse Wolfe <jes5199@gmail.com>2010-11-01 11:45:27 -0700
committerJesse Wolfe <jes5199@gmail.com>2010-11-01 11:49:41 -0700
commitfb5f859cf4a89042a1768b6cbc2dbfc43da49c99 (patch)
tree74ad789bb27f18b87bdbeaa83dfe9306105ed3a2 /lib/puppet/indirector
parent5f0cf4ef50a3676229a1c824b9a730b6951e1c7a (diff)
Fix #5164 Change Facts timestamp when they are received by the master
This patch causes the puppet master to re-timestamp facts when they are received by the catalog compiler terminus. This makes the timestamps more trustworthy, as it means that they are all based upon the same clock's time. Paired-With: Paul Berry <paul@puppetlabs.com>
Diffstat (limited to 'lib/puppet/indirector')
-rw-r--r--lib/puppet/indirector/catalog/compiler.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/puppet/indirector/catalog/compiler.rb b/lib/puppet/indirector/catalog/compiler.rb
index c50022fff..1e1ae12b1 100644
--- a/lib/puppet/indirector/catalog/compiler.rb
+++ b/lib/puppet/indirector/catalog/compiler.rb
@@ -22,6 +22,7 @@ class Puppet::Resource::Catalog::Compiler < Puppet::Indirector::Code
else
facts = Puppet::Node::Facts.convert_from(format, text_facts)
end
+ facts.add_timestamp
facts.save
end