summaryrefslogtreecommitdiffstats
path: root/lib/puppet/module.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@puppetlabs.com>2011-03-25 14:34:18 -0700
committerLuke Kanies <luke@puppetlabs.com>2011-03-25 14:34:18 -0700
commitde2e84eb93416cebe6d5a92ee88ba9c98cd52661 (patch)
tree9f3965b14998a7f26ace494a211cac01a10999bb /lib/puppet/module.rb
parent072baff5b5cec91d31a581d416225b70f425b2f0 (diff)
parente16a38349c596c4a6ea682173e0cc704dedc98a7 (diff)
downloadpuppet-de2e84eb93416cebe6d5a92ee88ba9c98cd52661.tar.gz
puppet-de2e84eb93416cebe6d5a92ee88ba9c98cd52661.tar.xz
puppet-de2e84eb93416cebe6d5a92ee88ba9c98cd52661.zip
Merge branch 'tickets/master/6850-resource_type_listing_and_converting' into next
Diffstat (limited to 'lib/puppet/module.rb')
-rw-r--r--lib/puppet/module.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/module.rb b/lib/puppet/module.rb
index 43266b2b5..059591ed8 100644
--- a/lib/puppet/module.rb
+++ b/lib/puppet/module.rb
@@ -138,7 +138,7 @@ class Puppet::Module
# Find this module in the modulepath.
def path
- environment.modulepath.collect { |path| File.join(path, name) }.find { |d| FileTest.exist?(d) }
+ environment.modulepath.collect { |path| File.join(path, name) }.find { |d| FileTest.directory?(d) }
end
# Find all plugin directories. This is used by the Plugins fileserving mount.