From 2db68781a11de7b135d0abc332ed144c4e4b71c3 Mon Sep 17 00:00:00 2001 From: luke Date: Fri, 26 Jan 2007 21:58:38 +0000 Subject: Fixing #434. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2096 980ebf18-57e1-0310-9a29-db15c13687c0 --- lib/puppet/type/pfile.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/puppet/type/pfile.rb b/lib/puppet/type/pfile.rb index 2551106a8..7035cf2dd 100644 --- a/lib/puppet/type/pfile.rb +++ b/lib/puppet/type/pfile.rb @@ -230,6 +230,10 @@ module Puppet self.fail "You cannot specify both content and a source" end end + + def self.[](path) + super(path.gsub(/\/+/, '/').sub(/\/$/, '')) + end # List files, but only one level deep. def self.list(base = "/") -- cgit