Skip to content

Commit

Permalink
Replaced call to 'ChefVault::Item.load' with 'chef_vault_item' to all…
Browse files Browse the repository at this point in the history
…ow for easier testing
  • Loading branch information
Raoul Wissink committed Jul 19, 2014
1 parent 28d6ae2 commit a919dc7
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 a919dc7

Please sign in to comment.