Correct, Varys was trying to poison Dany. Remember he tried the same thing for Robert at the beginning of the series. Tyrion's duty to Dany overrode his friendship with Varys and that's why he tells Dany of the plot. It was definitely a tough decision and after he sees what Dany does to the people of King's Landing, I'm sure he wishes Varys would have succeeded. Oh