There was no directive from the government to cap oil prices in the run-up to the Karnataka elections, state-run oil firm Indian Oil Corporation said today, addressing an issue that has come under sharp focus since prices started a relentless climb nine days ago.