Chef vault issue


#1

Hi All,
I am getting below error when using chef vault in my recipe
uninitialized constant #<Class:#Chef::Recipe:0x000000036a6e10>::ChefVault for below line in recipe
bkeshark_password = ChefVault::Iteam.load(‘user_password’,‘bkeshark’)

default.rb
chef_gem ‘chef-vault’ do
compile_time true if respond_to?(:compile_time)
end

require ‘chef-vault’

bkeshark_password = ChefVault::Iteam.load(‘user_password’,‘bkeshark’)

user ‘bkeshark’ do
password bkeshark_password[‘password’]
end


#2
uninitialized constant #<Class:#>::ChefVault for below line in recipe
bkeshark_password = ChefVault::Iteam.load('user_password','bkeshark')

Item appears to be misspelled. ChefVault::Iteam should be ChefVault::Item.


#3

Thanks a lot Robb and apologize for oversight.