diff options
author | Luke Kanies <luke@madstop.com> | 2007-09-06 20:12:30 -0500 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2007-09-06 20:12:30 -0500 |
commit | 7abc78ad25979c62b585127a8f2a32c55e96819f (patch) | |
tree | 51cc4c7be632b09025b91100441672d5918bed81 /lib/puppet | |
parent | 4212f9c2250377793d6ed636c18c7a8538160366 (diff) | |
download | puppet-7abc78ad25979c62b585127a8f2a32c55e96819f.tar.gz puppet-7abc78ad25979c62b585127a8f2a32c55e96819f.tar.xz puppet-7abc78ad25979c62b585127a8f2a32c55e96819f.zip |
Fixing #795 -- configuration elements now make sure all file paths are fully qualified by prepending the wd to unqualified path names.
Diffstat (limited to 'lib/puppet')
-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. |