445: def change_to_s(currentvalue, newvalue)
446: begin
447: if currentvalue == :absent or currentvalue.nil?
448: return "created"
449: elsif newvalue == :absent
450: return "removed"
451: else
452: return "%s changed '%s' to '%s'" %
453: [self.name, self.is_to_s(currentvalue), self.should_to_s(newvalue)]
454: end
455: rescue Puppet::Error, Puppet::DevError
456: raise
457: rescue => detail
458: raise Puppet::DevError, "Could not convert change %s to string: %s" %
459: [self.name, detail]
460: end
461: end