Lyon will take on Paris St Germain in the Coupe de la Ligue final after beating Troyes 2-1 on Wednesday night.