HomePhorge

[#4370] Fixes extlookup precedence getting overwritten between runs
be2b1f360fc1Unpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

Description

[#4370] Fixes extlookup precedence getting overwritten between runs

We found the gsub! in extlookup was actually modifying the value for
extlookup_precedence, so the next node to call it just got the
interpolated value from the first run.

We did two things in the code to prevent this:

  1. We returned a dup of the ast string object so that modifying it

wouldn’t change puppet’s state. We didn’t do this for all possible
return values because we depend on using the original ast array object
to do array concatenation

  1. We fixed extlookup to not do a destructive gsub

Reviewed by: Jesse Wolfe

Details

Provenance
Matt Robinson <matt@puppetlabs.com>Authored on
markus <markus@AVA-351181.(none)>Committed on Aug 4 2010, 12:19 AM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU03808fdc05c4: Fixed #4364 - Reduced audit msg from info to debug
Branches
Unknown
Tags
Unknown

Event Timeline

markus <markus@AVA-351181.(none)> committed rPUbe2b1f360fc1: [#4370] Fixes extlookup precedence getting overwritten between runs (authored by Matt Robinson <matt@puppetlabs.com>).Aug 4 2010, 12:19 AM