Earlier , Mr. Chavez warned that the price of oil would soar if the United States took military action against Iran .