In any action for divorce when it appears to the court that grounds for divorce exist, the court in its discretion may grant a divorce to either party.