The military swear alligience to the Office of the President
not to the political person who happens to be President.
The military DO NOT swear allegiance to the Office of the President. We swore allegiance to the United States and agreed to follow the orders of “those appointed over us.” The word “president” appears nowhere in the oath.