Fixing chef11 code for hosts-awareness