On Thursday, December 11, 2014 10:22:41 AM UTC-6, Geoffrey Gardella wrote:
>
> Okay, I see. I can't add new keys while I am iterating, which makes sense. 
> So, I need to create a new hash and then do a .merge when I'm done.
>
>

No, you don't quite see.  Puppet variables cannot (should not) be modified 
once set.  You are not out to modify the existing hash or its keys; 
instead, you are creating a *new* one to your specification.  The code I 
offered you is right (or very close to it) exactly as it is.


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/852f603b-07c3-427f-9d4b-71af0e7130be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to