i think that yoda suspected, he suspected but didnt know. i can tell you that if he was sure that pali was the sith lord he would have confronted he, but he wasnt, and so he didnt want to take the risk, cus if he was wrong, it would not have been a good time for the jedi if you know what i mean.