Advice – My partner slept with someone before I had a chance to meet her. Am I the asshole?

My primary partner slept with his girlfriend before I had an opportunity to meet her even though this was a preexisting agreement between us. I am angry with both of them. Am I the asshole for feeling upset?