I don't think Obama really wanted Petraeus anyway. The DCI appointment was a way to get him out of the limelight, keep him from being a popular candidate for Chief of Staff of the Army or CJCS and keep him from becoming a political opponent in 2012. I expect Petraeus is just as happy to leave an administration that hung men out to dry despite live feeds during 7 hours of combat.