Move line requiring chef node creation to below creating the chef node