I mostly agree with Jaja, not because I believe that sport should be apolitical, but more because the current approach feels very ad hoc. At a minimum, political bans should be based on clear, a priori criteria for what actions trigger the ban and what actions are required to end it. The IOC, to their credit, at least has the former with their Olympic Truce policy.
In addition, the complicated nature of international conflict (as well as territorial disputes) makes it really difficult to avoid having to become the arbiter of what is a legitimate military action and what is not. Is that really a position that a sporting body should be in?