From 1b0b910151ec35bf652e1e1ddc07f34f80ea4a42 Mon Sep 17 00:00:00 2001 From: Justin Ellison Date: Tue, 13 Oct 2015 12:19:47 -0500 Subject: [PATCH] Fix for breakage introduced in 1.3.1 Fix for "Data Bag Items must contain a Hash or Mash!" --- libraries/helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/helpers.rb b/libraries/helpers.rb index 25a3051..f6dd544 100644 --- a/libraries/helpers.rb +++ b/libraries/helpers.rb @@ -33,7 +33,7 @@ module ChefVaultCookbook # @param [String] bag Name of the data bag to load from. # @param [String] id Identifier of the data bag item to load. def chef_vault_item(bag, id) - if ChefVault::Item.vault?(bag, id) + if Chef::DataBag.load(bag).key?("#{id}_keys") ChefVault::Item.load(bag, id) elsif node['chef-vault']['databag_fallback'] Chef::DataBagItem.load(bag, id)