Skip to content

Commit bb6b75d

Browse files
committed
Update DisasterRecoveryClusterServiceImpl.java
1 parent 5334a39 commit bb6b75d

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

plugins/integrations/disaster-recovery/src/main/java/com/cloud/dr/cluster/DisasterRecoveryClusterServiceImpl.java

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2074,8 +2074,11 @@ public boolean startDisasterRecoveryClusterVm(StartDisasterRecoveryClusterVmCmd
20742074
}
20752075
}
20762076
}
2077+
status = true;
2078+
} else {
2079+
status = false;
2080+
break;
20772081
}
2078-
status = true;
20792082
}
20802083
if (status) {
20812084
break Loop;
@@ -2413,8 +2416,11 @@ public boolean takeSnapshotDisasterRecoveryClusterVm(TakeSnapshotDisasterRecover
24132416
}
24142417
}
24152418
}
2419+
status = true;
2420+
} else {
2421+
status = false;
2422+
break;
24162423
}
2417-
status = true;
24182424
}
24192425
if (status) {
24202426
break Loop;
@@ -3016,8 +3022,11 @@ private void takeSnapDemoteDisasterRecoveryClusterMirror(final DisasterRecoveryC
30163022
}
30173023
}
30183024
}
3025+
status = true;
3026+
} else {
3027+
status = false;
3028+
break;
30193029
}
3020-
status = true;
30213030
}
30223031
if (status) {
30233032
break Loop;

0 commit comments

Comments
 (0)