# File lib/puppet/transaction/resource_harness.rb, line 101
101:   def apply_parameter(property, current_value, do_audit, historical_value)
102:     event = create_change_event(property, current_value, do_audit, historical_value)
103: 
104:     if do_audit && historical_value && historical_value != current_value
105:       brief_audit_message = " (previously recorded value was #{property.is_to_s(historical_value)})"
106:     else
107:       brief_audit_message = ""
108:     end
109: 
110:     if property.noop
111:       event.message = "current_value #{property.is_to_s(current_value)}, should be #{property.should_to_s(property.should)} (noop)#{brief_audit_message}"
112:       event.status = "noop"
113:     else
114:       property.sync
115:       event.message = [ property.change_to_s(current_value, property.should), brief_audit_message ].join
116:       event.status = "success"
117:     end
118:     event
119:   rescue => detail
120:     puts detail.backtrace if Puppet[:trace]
121:     event.status = "failure"
122: 
123:     event.message = "change from #{property.is_to_s(current_value)} to #{property.should_to_s(property.should)} failed: #{detail}"
124:     event
125:   ensure
126:     event.send_log
127:   end