Issue #3047 has been updated by Felix Frank.
This is fixed along with #16809. ---------------------------------------- Bug #3047: Cron entries using "special" parameter lose their title when changed https://projects.puppetlabs.com/issues/3047#change-87499 * Author: James Turnbull * Status: Needs Decision * Priority: Normal * Assignee: Daniel Pittman * Category: cron * Target version: * Affected Puppet version: 0.25.2 * Keywords: cron special * Branch: http://github.com/jes5199/puppet/tree/ticket/0.25.x/3047 ---------------------------------------- When using a special parameter (e.g @reboot ...) to create a cron entry the entry is added to with a title comment "# Puppet Name: ..." just like a regular entry. However when the entry is modified the comment is dropped. Because there is no longer a comment title if the entry is modified again, instead of replacing the old line, it will add a new line complete with comment. The old line is now left orphaned. Example: <pre> cron{ "test": command => "/bin/echo One > /tmp/puppet.txt", special => "reboot", } </pre> gives: <pre> # Puppet Name: test @reboot /bin/echo One > /tmp/puppet.txt </pre> changing to: <pre> cron{ "test": command => "/bin/echo Two > /tmp/puppet.txt", special => "reboot", } </pre> gives: <pre> @reboot /bin/echo Two > /tmp/puppet.txt </pre> changing again to: <pre> cron{ "test": command => "/bin/echo Three > /tmp/puppet.txt", special => "reboot", } </pre> gives: <pre> @reboot /bin/echo Two > /tmp/puppet.txt # Puppet Name: test @reboot /bin/echo Three > /tmp/puppet.txt </pre> -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
