The oil shocks of the 1970s had once taught presidents and military chiefs to observe some caution in the Middle East.