A prominent Los Angeles attorney could face six months in federal prison for making illegal contributions to the 2004 presidential campaign of former Sen. John Edwards.

The U.S. attorney's office says Pierce O'Donnell pleaded guilty Thursday to two counts of making illegal campaign contributions and agreed to a six-month sentence and a $20,000 fine. O'Donnell is set to be sentenced in November.

In a statement, O'Donnell's attorney Brian J. O'Neill says he and O'Donnell are pleased with the resolution.

O'Donnell acknowledged he provided some $20,000 to Edwards' campaign for the 2004 Democratic presidential nomination by reimbursing straw donors.

In 2006, O'Donnell was ordered to pay more than $155,000 after pleading no contest to using a false name while making political contributions to former Los Angeles Mayor James Hahn's campaign.