summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/util')
-rwxr-xr-xlib/puppet/util/filetype.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/puppet/util/filetype.rb b/lib/puppet/util/filetype.rb
index 81d93a924..1c7734cc4 100755
--- a/lib/puppet/util/filetype.rb
+++ b/lib/puppet/util/filetype.rb
@@ -74,7 +74,8 @@ class Puppet::Util::FileType
# Pick or create a filebucket to use.
def bucket
- Puppet::Type.type(:filebucket).mkdefaultbucket.bucket
+ filebucket = Puppet::Type.type(:filebucket)
+ (filebucket["puppet"] || filebucket.mkdefaultbucket).bucket
end
def initialize(path)