By CBSLA Staff

LOS ANGELES (CBSLA) — Rapper Nicki Minaj’s husband, Kenneth Petty, has pleaded guilty in Los Angeles to a federal charge of failing to register as a sex offender.

FILE — Nicki Minaj and husband Kenneth Petty at a Marc Jacobs NYFW event in Manhattan on Feb. 12, 2020 in New York City. (Getty Images)

Petty, 43, formally entered his plea to the charge during a Zoom hearing in Los Angeles federal court on Thursday. He faces anywhere between probation and 10 years behind bars when sentenced Jan. 24, according to the U.S. Attorney’s Office.

READ MORE: Black Lives Matter LA's Melina Abdullah Targeted With Another Swatting Call

More than two decades before he married Minaj in 2019, Petty was convicted of attempted rape in New York in 1995 — for an incident that occurred with a 16-year-old girl in September 1994. He served about four and a half years in prison and, as a condition of his conviction, he must register as a sex offender whenever he moves.

READ MORE: K-12, Community College Students Can Ride Metro For Free Beginning Nov. 1

He and the “Bang Bang” rapper moved to California after their marriage. The couple have an 11-month-old son.

MORE NEWS: No Injuries After Gunman Opens Fire At Shake Shack In Canoga Park

(© Copyright 2021 CBS Broadcasting Inc. All Rights Reserved. City News Service contributed to this report.)