Putin’s war has revitalized the alliance, which would be even stronger with Ukraine as a member after the war.