summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2005-07-26 21:27:14 +0000
committerLuke Kanies <luke@madstop.com>2005-07-26 21:27:14 +0000
commite685ddb63aec1c6652e289125178ae43106f4041 (patch)
tree059ea4bd594eb808f2ec607eff2bca4916414bb0 /lib
parent01666f6654e9afb3edbdf16cff30ceccb1beca30 (diff)
fixing statefile creation
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@464 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/storage.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/storage.rb b/lib/puppet/storage.rb
index 69ed2af4f..67c2dbeab 100644
--- a/lib/puppet/storage.rb
+++ b/lib/puppet/storage.rb
@@ -63,7 +63,7 @@ module Puppet
def self.store
unless FileTest.directory?(File.dirname(Puppet[:statefile]))
begin
- Puppet.recmkdir(Puppet[:statefile])
+ Puppet.recmkdir(File.dirname(Puppet[:statefile]))
Puppet.info "Creating state directory %s" %
File.dirname(Puppet[:statefile])
rescue => detail