diff options
Diffstat (limited to 'lib/puppet/util')
-rw-r--r-- | lib/puppet/util/config.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/puppet/util/config.rb b/lib/puppet/util/config.rb index f5cc4bcce..9cdb4cfe3 100644 --- a/lib/puppet/util/config.rb +++ b/lib/puppet/util/config.rb @@ -1137,7 +1137,11 @@ Generated on #{Time.now}. path.shift # remove the leading nil objects = [] - obj = Puppet::TransObject.new(self.value, "file") + path = self.value + unless path =~ /^#{File::SEPARATOR}/ + path = File.join(Dir.getwd, path) + end + obj = Puppet::TransObject.new(path, "file") # Only create directories, or files that are specifically marked to # create. |