When a surety is sued by the creditor on the suretyship obligation, and the right of discussion has been created by contract between the surety and the creditor, the surety may plead discussion to compel the creditor to obtain and execute a judgment against the principal before executing a judgment against the surety.
La. C.P. § 5152