Please answer a question about the following article about Muammar Gaddafi:

Gaddafi financially supported other militant groups across the world, including the Black Panther Party, Nation of Islam, Tupamaros, 19th of April Movement and Sandinista National Liberation Front in the Americas, the ANC among other liberation movements in the fight against Apartheid in South Africa, the Provisional Irish Republican Army, ETA, Sardinian nationalists, Action directe, the Red Brigades, and the Red Army Faction in Europe, and the Armenian Secret Army, Japanese Red Army, Free Aceh Movement, and Moro National Liberation Front in Asia. Gaddafi was indiscriminate in the causes he funded, sometimes switching from supporting one side in a conflict to the other, as in the Eritrean War of Independence. Throughout the 1970s these groups received financial support from Libya, which came to be seen as a leader in the Third World's struggle against colonialism and neocolonialism. Though many of these groups were labelled "terrorists" by critics of their activities, Gaddafi rejected such a characterisation, instead considering them revolutionaries engaged in liberation struggles.

During what conflict did Gaddafi notably switch sides?
Eritrean War of Independence