Language:
Free Online Dictionary|3Dict

见风转舵

Source : CEDICT

lit. see the wind and set the helm (idiom); fig. to act pragmatically/to be flexible and take advantage of the situation