THis looks like wishful thinking on the part of the left to me. Generals generally love war and love attacks.
I don't know if they love it so much. I think it's more that if you have a hammer in your hand the whole world looks like a nail.
The generals will fight if ordered by competent civilian authority to fight. The generals I have known do not relish the death and destruction of war and seek to minimize it as much as possible. That means fighting smart and hard. To paraphrase Patton, they would rather expend a bucket of sweat to save a pint of blood.
If there are generals opposed to intervention in Iran (and there may be) their option is to resign and clear the way for generals who will, if it comes to that. If they don't resign they will be fired.