I did not get in trouble today at work. I did apologize to my boss. She understood as it was a frustrating situation that has not been rectified and I have been caught in the middle. I said it was not professional of me to snap at her and that I was sorry.
One thing I can do is admit I am wrong. I try to teach this to my daughter that when you do, it is OK to apologize and then to not let it happen again.