Canada’s Response to the War: Is It the Right?

Canada’s government has publicly backed the recent U.S. and Israeli air strikes on Iran aimed at stopping Iran’s nuclear program, but when asked whether those strikes violate international law, Foreign Affairs Minister Anita Anand refused to answer. At the same time, Ottawa says it will not send Canadian troops and is pushing for diplomacy.
Is this the right move to back the US, even after all of the tension between the US and Canada in recent months. Or would it have been smarter for Canada to take an independent approach on the issue in order to not show cooperation with the US.
Canada urges diplomatic solution in Iran, won't say if it views strikes as illegal