> I don’t think Ukraine would have risked an operation against a country they were actively trying to get military support from.
It didn't make much of a difference to Germany since the gas flow via NS1 was already switched off for a while and NS2 never had delivered any gas before the sabotage happened. In the end it was more of a symbolic gesture to freeze the status quo that was already in place anyway.