Governments sanctioned apartheid out of realpolitik, not moral outrage alone
Evidence
And those governments worldwide that joined the more or less formal diplomatic protest against the apartheid state by imposing travel restrictions or ultimately sanctions were prompted as much by geostrategic realpolitik as by moral outrage and the attempt to appease local national protest and to delink local racial injustices from the volatile mix. — David Theo Goldberg, The Threat of Race, 101