Plaintiff secured a judgment against X based in part on a contract containing an attorney fee clause. Thereafter, plaintiff sued Saleen seeking to enforce the judgment against him as X’s alter ego. Saleen won and moved for an attorney fee award. Held, Saleen is entitled to a fee award. Even though the suit on the judgment is technically not a suit on the contract, which merged into the judgment, the suit is nevertheless a continuation of the original action against X which was on the contract. Plaintiff could have joined Saleen to the original action as an alter ego. That plaintiff chose to sue him in a separate action on the judgment should not insulate plaintiff from a fee award under Civ. Code 1717.