That is precisely what it is, since we aren’t at war according to our esteemed strategerist, Jon Kerry.
Commissioned officers(including retired) serve at the pleasure of the prez. Even after he was forced to retire, Obama kept him on as the top general in Afghanistan. He got that job when Petraeus moved up to CIA, and held it until the COIN mission ended in Afghanistan