HomePhorge

(PUP-3898) Fix writing content with checksum
6f6089ef1c48Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(PUP-3898) Fix writing content with checksum

Previously when using checksum on a file resource, the target file's
checksum would be calculated using the selected checksum type, but the
content attribute would use the configured default checksum type. When
these don't match the file would be updated unnecessarily.

This change fixes writing a file from content for a non-default
checksum type when the content is initialized as part of creating a
file resource by re-initializing the content's checksum value after the
checksum type for the file resource has been evaluated. Fix applies to
both puppet apply and puppet agent runs.

Details

Provenance
Michael Smith <michael.smith@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU0f551b396742: Merge branch 'pr/3528'
Branches
Unknown
Tags
Unknown

Event Timeline

Michael Smith <michael.smith@puppetlabs.com> committed rPU6f6089ef1c48: (PUP-3898) Fix writing content with checksum (authored by Michael Smith <michael.smith@puppetlabs.com>).Feb 3 2015, 12:51 AM