Skip to content

Commit 7cb324f

Browse files
committed
<fix>[compute]: skip VmAttachNicOnHypervisorFlow when VM is stopped
Resolves: ZSTAC-76466 Change-Id: I0821dd9e563da0186465af28f68982fafdf8145f
1 parent addec8c commit 7cb324f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

compute/src/main/java/org/zstack/compute/vm/VmInstanceBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2285,8 +2285,8 @@ void rollback() {
22852285
setAdditionalFlow(flowChain, spec);
22862286
if (self.getState() == VmInstanceState.Running) {
22872287
flowChain.then(new VmInstantiateResourceOnAttachingNicFlow());
2288+
flowChain.then(new VmAttachNicOnHypervisorFlow());
22882289
}
2289-
flowChain.then(new VmAttachNicOnHypervisorFlow());
22902290

22912291
flowChain.done(new FlowDoneHandler(completion) {
22922292
@Override

0 commit comments

Comments
 (0)