chě​shùn​fēng​qí

to change one's attitude based on the situation