a fair-weather friend someone who cannot be relied on in a crisis.
2013Daily Telegraph It destroys any pretence that the EU has at its heart a belief in democracy, or in those warm words so often repeated about it being the guardian of essential 'European' qualities. In truth it was only a fair-weather friend and its behaviour in this storm, as in others, is to drop these benevolent ideas like hot stones.