Perhaps. But if Iran was the source, and that source was incorrect, the response would probably not be to claim that someone on the US side was leaking classified information.
In bitching about leaks in his administration, Trump confirmed that the sites were, indeed, not completely destroyed.
Switching sides? Donald Trump has never had any real interest in helping Ukraine. That was true the first time he was president. This is not new.