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 ?