diff options
-rw-r--r-- | lib/puppet/reports/rrdgraph.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/reports/rrdgraph.rb b/lib/puppet/reports/rrdgraph.rb index 5e5b4427e..3f46980e3 100644 --- a/lib/puppet/reports/rrdgraph.rb +++ b/lib/puppet/reports/rrdgraph.rb @@ -99,7 +99,7 @@ Puppet::Network::Handler.report.newreport(:rrdgraph) do def process(time = nil) time ||= Time.now.to_i - unless File.directory?(hostdir) and File.writeable?(hostdir) + unless File.directory?(hostdir) and FileTest.writable?(hostdir) # Some hackishness to create the dir with all of the right modes and ownership config = Puppet::Util::Config.new config.setdefaults(:reports, :hostdir => {:default => hostdir, :owner => Puppet[:user], :mode => 0755, :group => Puppet[:group], :desc => "eh"}) |