I'm building a module to handle django local_settings.py and I'm using
a hash to store the database settings. The problem I ran into was the
if I had multiple databases defined then it was possible for the
config file to be recreated as the order of the databases in the hash
wasn't guaranteed. To work around this I sorted all the keys in the
hash and enumerated over that. I've attached an example of what I'm
doing in case anyone else bumps into this problem.

Here's what I'm doing: https://gist.github.com/1895347

Does anyone have a better solution?

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to