Add retry method to allow discovery to wait for chef index update