summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorThom May <thom@virelais.nyc.joostas.com>2008-11-26 14:58:27 -0500
committerJames Turnbull <james@lovedthanlost.net>2008-11-29 09:41:51 +1100
commit3c4efa7ec2043043d72d325e67fe5bd6098e0413 (patch)
tree7e8fcff95678231c3f07a8d6b7df8c326979109a /lib/puppet
parent3a395095d7b913661484bc5caeeb90cb34cd5b3f (diff)
downloadpuppet-3c4efa7ec2043043d72d325e67fe5bd6098e0413.tar.gz
puppet-3c4efa7ec2043043d72d325e67fe5bd6098e0413.tar.xz
puppet-3c4efa7ec2043043d72d325e67fe5bd6098e0413.zip
Fixes #1773 - no longer check for absolute paths
Diffstat (limited to 'lib/puppet')
-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 9385812b1..7bf35ac18 100644
--- a/lib/puppet/module.rb
+++ b/lib/puppet/module.rb
@@ -24,7 +24,7 @@ class Puppet::Module
def self.templatepath(environment = nil)
dirs = Puppet.settings.value(:templatedir, environment).split(":")
dirs.select do |p|
- p =~ /^#{File::SEPARATOR}/ && File::directory?(p)
+ File::directory?(p)
end
end