diff options
| author | James Turnbull <james@lovedthanlost.net> | 2008-01-21 17:26:55 +1100 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2008-01-21 17:26:55 +1100 |
| commit | 84de2c2c563d3f3543dfe154bf468ce4d22d50ec (patch) | |
| tree | 7f17ccc6e54a7849998cc119c63f74ad6816ddf7 /lib | |
| parent | d7a89b449520abb95396132bc379782a0d596816 (diff) | |
| parent | 8a649ff28a46afe6b1e4dd002ac90c93651edfa3 (diff) | |
| download | puppet-84de2c2c563d3f3543dfe154bf468ce4d22d50ec.tar.gz puppet-84de2c2c563d3f3543dfe154bf468ce4d22d50ec.tar.xz puppet-84de2c2c563d3f3543dfe154bf468ce4d22d50ec.zip | |
Merge branch '0.24.x' of git://reductivelabs.com/puppet into 0.24.x
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/puppet/util/settings.rb | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/lib/puppet/util/settings.rb b/lib/puppet/util/settings.rb index b672d9564..ff019edb8 100644 --- a/lib/puppet/util/settings.rb +++ b/lib/puppet/util/settings.rb @@ -510,18 +510,19 @@ class Puppet::Util::Settings end # Only files are convertable to transportable resources. - if obj.respond_to? :to_transportable - next if value(obj.name) =~ /^\/dev/ - transobjects = obj.to_transportable - transobjects = [transobjects] unless transobjects.is_a? Array - transobjects.each do |trans| - # transportable could return nil - next unless trans - unless done[:file].include? trans.name - @created << trans.name - objects << trans - done[:file][trans.name] = trans - end + next unless obj.respond_to? :to_transportable + next if value(obj.name) =~ /^\/dev/ + next if Puppet::Type::File[obj.value] # skip files that are in our global resource list. + + transobjects = obj.to_transportable + transobjects = [transobjects] unless transobjects.is_a? Array + transobjects.each do |trans| + # transportable could return nil + next unless trans + unless done[:file].include? trans.name + @created << trans.name + objects << trans + done[:file][trans.name] = trans end end end |
