diff options
Diffstat (limited to 'lib/puppet/sslcertificates.rb')
-rwxr-xr-x | lib/puppet/sslcertificates.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/sslcertificates.rb b/lib/puppet/sslcertificates.rb index da6853a8c..bc3382ab6 100755 --- a/lib/puppet/sslcertificates.rb +++ b/lib/puppet/sslcertificates.rb @@ -14,7 +14,7 @@ module SSLCertificates def self.mkdir(dir) # this is all a bunch of stupid hackery unless FileTest.exists?(dir) - comp = Puppet::Type::Component.new( + comp = Puppet::Type::Component.create( :name => "certdir creation" ) path = [''] @@ -26,7 +26,7 @@ module SSLCertificates raise "%s exists but is not a directory" % File.join(path) end else - obj = Puppet::Type.type(:file).new( + obj = Puppet::Type.type(:file).create( :name => File.join(path), :mode => "750", :create => "directory" |