My old man was a military man, and one of the things he told me that's stuck with me to this day is if you have a more senior member of your team who is a bit of a Muppet, it is important to remember to respect the rank even if you don't respect the person. So you do your job properly, cover your own arse, but don't go out of your way to make their life easy. If they're a bit of a tit, they'll make their own cockups and their boss will hang then out to dry.