Skip to content

Commit

Permalink
Merge pull request #1 from raoulwissink/master
Browse files Browse the repository at this point in the history
Replace call to 'ChefVault::Item.load' with 'chef_vault_item'
  • Loading branch information
xamebax committed Nov 30, 2014
2 parents a44872f + a919dc7 commit cfa77e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

node['ssl_certificates'].to_hash.each do |name, certificates|
begin
item = ChefVault::Item.load('certs', "ssl-key-#{name.gsub(/[^a-z0-9]/, '_')}")
item = chef_vault_item('certs', "ssl-key-#{name.gsub(/[^a-z0-9]/, '_')}")
rescue ChefVault::Exceptions::KeysNotFound, ChefVault::Exceptions::SecretDecryption
node.save
raise
Expand Down

0 comments on commit cfa77e9

Please sign in to comment.