Issue #18456 has been updated by Carl Caum. Status changed from Unreviewed to Rejected
Seems like this isn't necessary anymore. ---------------------------------------- Feature #18456: When using 'ensure => latest', in the Report events the value of desired_value should be the upgraded version, not :latest https://projects.puppetlabs.com/issues/18456#change-88085 * Author: Carl Caum * Status: Rejected * Priority: Immediate * Assignee: eric sorenson * Category: * Target version: 3.2.0 * Affected Puppet version: * Keywords: backlog * Branch: ---------------------------------------- Let's say we have a package resource: package { 'apt-transport-https': ensure => latest, } Now let's say during a run that package is updated because a newer version is available. In the resulting Pupet run report, the event for that change only contains the version the package updated to in the message. The desired_value contains the value :latest instead of the version the package was updated to. For example: #<Puppet::Transaction::Event:0xb7117fbc @previous_value="0.7.25.3ubuntu9.9", @property="ensure", @status="noop", @source_description="/Package[apt-transport-https]/ensure", @tags=["package", "apt-transport-https"], @name=:package_changed, @file=nil, @time=Thu Jan 10 01:37:09 +0100 2013, @audited=false, @historical_value=nil, @line=nil, @resource="Package[apt-transport-https]", @desired_value=:latest, @message="current_value 0.7.25.3ubuntu9.9, should be 0.7.25.3ubuntu9.13 (noop)", @default_log_level=:notice> Either desired_value's value should be the version the package was updated to, or there should be another field to retrieve that information. Currently, the message string has to be parsed, and, well, that's not ideal. -- 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.
