fix deprecation warning. Fixes CHEF-3847