summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-11-25 13:21:54 -0600
committerJames Turnbull <james@lovedthanlost.net>2008-11-26 12:56:12 +1100
commita839fe277bcf0e5d71da9987e2608e73f6cca59b (patch)
tree82abd554318d492964409a63caed592c81460d18
parent5bd27c8b81c3250dd04307460868ff113b64190c (diff)
downloadpuppet-a839fe277bcf0e5d71da9987e2608e73f6cca59b.tar.gz
puppet-a839fe277bcf0e5d71da9987e2608e73f6cca59b.tar.xz
puppet-a839fe277bcf0e5d71da9987e2608e73f6cca59b.zip
Partially fixing #1772 - fixing tidy code I broke.
Signed-off-by: Luke Kanies <luke@madstop.com>
-rwxr-xr-xlib/puppet/type/tidy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/type/tidy.rb b/lib/puppet/type/tidy.rb
index a3d994128..e37da5ef8 100755
--- a/lib/puppet/type/tidy.rb
+++ b/lib/puppet/type/tidy.rb
@@ -44,7 +44,7 @@ module Puppet
end
def insync?(is)
- if File.lstat(file).ftype == "directory" and ! @resource[:rmdirs]
+ if File.lstat(resource[:path]).ftype == "directory" and ! @resource[:rmdirs]
self.debug "Not tidying directories"
return true
end