 In 1877, Goodnight was elected to the Kentucky House of Representatives, serving a single, two-year term.He served as the chairman of the Democratic Kentucky convention at Louisville, Kentucky in 1891.He was elected to represent the Third District in the U.S. House of Representatives in 1888.