Richard
2014-Oct-29 02:57 UTC
[Puppet Users] Is this a bug in puppet/lib/puppet/reports/store.rb file ?
now = Time.now.gmtime name = %w{year month day hour min}.collect do | method| # Make sure we're at least two digits everywhere "%02d" % now.send(method).to_s end.join("") + ".yaml"#when my master run 'puppet kick -- host **' command twice quickly. this statement will get the same result. if the agent # run two command quickly, i will get the same 'name' to both command #for example the time of this two command are Wed Oct 29 10:17:28 +0800 2014 and Wed Oct 29 10:17:10 +0800 2014, #the result always is 201410290217.yaml. #but in my context,i want to know if my master get a report from agent, so when the report file name is same for both comand #i will think i don't get a report. #the next command's report will replace the report before it using the same name, this will result losing some report #is this a bug ? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/63fa3cd1-4eb9-4549-8ca6-148f15935014%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.