make a virtue of necessity - definition and synonyms

phrase
  1. to pretend that you are doing something because you have chosen to do it and because it will bring you benefits, when in fact it is something that you must do
See also main entry: virtue