SALEM – A former Lynn woman who admitted peddling cocaine last fall after being stopped in a car on Summer Street received two years in state prison.Diana J. Perry, 34, formerly of 13 Cedar St., Lynn, made her plea last week in Salem Superior Court to a charge of possession with the intent to distribute cocaine before Judge Timothy Q. Feeley.The judge followed the agreement reached by Assistant District Attorney Christina Pujals Ronan and defense lawyer Bradford E. Keene.The charge stems from her arrest on Oct. 20 when police stopped her in a motor vehicle on Summer Street concerning an outstanding warrant out of Middlesex County and discovered six bags of cocaine on her person.At the time of her arrest, Perry was on a suspended sentence for distributing narcotics arising out of a case in Peabody in 2002 in which she pleaded guilty and had been in default on the case for five years.Perry will also be on probation for another three years when she is released from prison after Feeley found her in violation of her probationary obligation on the 2002 case.The judge credited Perry the 183 days she spent in Framingham Prison for Women awaiting trial on her new case.