summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util/autoload.rb
diff options
context:
space:
mode:
authorStefan Schulte <stefan.schulte@taunusstein.net>2010-11-17 22:59:47 +0100
committerNick Lewis <nick@puppetlabs.com>2010-11-17 15:55:24 -0800
commit8efdc769db2e144fe61eccbb1663a1c9594b09ab (patch)
tree413e081f4b908d6270bfd6cd44631118ab9b137b /lib/puppet/util/autoload.rb
parent53bb805f118ccaca5598e60afadfa6b777410a0f (diff)
downloadpuppet-8efdc769db2e144fe61eccbb1663a1c9594b09ab.tar.gz
puppet-8efdc769db2e144fe61eccbb1663a1c9594b09ab.tar.xz
puppet-8efdc769db2e144fe61eccbb1663a1c9594b09ab.zip
(#5274) Tests for hostprovider removes comments
I noticed that the hostprovider will remove all inline comments from the /etc/hosts file, when puppet updates at least one entry. Puppet will also remove comments from entries, the user doesnt want to manage with puppet. To split up changes a bit this commit will only introduce tests for the host type and the hostprovider. A few will fail, indicating the bug: The hostprovider parses all entries and builds a hash. When building the recordhash all comments are discarded. When puppet has to update at least one entry it uses the to_line function to convert the record hash back to a file. Because the comments are not stored in the hash, they cannot be written back to the file.
Diffstat (limited to 'lib/puppet/util/autoload.rb')
0 files changed, 0 insertions, 0 deletions