Hi I am using below in code in my chef recipe and it works fine with all the other existing servers however it doesn't work well with my new server.
user_array = node
node['user']['user_array_node_attr'].split("/").each do |hash_key|
user_array = user_array.send(:[], hash_key)
end
And gives error as
FATAL: NoMethodError: undefined method 'split' for nil:NilClass