From a919dc73a4ed6bf72cd31a91e65fc56d0bb279c1 Mon Sep 17 00:00:00 2001 From: Raoul Wissink Date: Sat, 19 Jul 2014 12:13:41 +0200 Subject: [PATCH] Replaced call to 'ChefVault::Item.load' with 'chef_vault_item' to allow for easier testing --- recipes/default.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/default.rb b/recipes/default.rb index 178b7f6..b35bd14 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -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