File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
plugins/hypervisors/kvm/src/main/java/org/apache/cloudstack/kvm/ha Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 3535import org .apache .cloudstack .outofbandmanagement .OutOfBandManagement .PowerOperation ;
3636import org .apache .cloudstack .outofbandmanagement .OutOfBandManagementService ;
3737import org .joda .time .DateTime ;
38+ import com .cloud .host .Status ;
3839
3940import javax .inject .Inject ;
4041
@@ -84,11 +85,12 @@ public boolean recover(Host r) throws HARecoveryException {
8485
8586 @ Override
8687 public boolean fence (Host r ) throws HAFenceException {
88+
8789 try {
8890 // host exists and is managed OOB
8991 if (r != null && outOfBandManagementService .isOutOfBandManagementEnabled (r )) {
9092 // check host status
91- if (Host . Status .DOWN .equals (r .getStatus ())) {
93+ if (Status .Down .equals (r .getStatus ())) {
9294 logger .info ("Host " + r .getName () + " is already down. Returning success." );
9395 return true ;
9496 } else {
You can’t perform that action at this time.
0 commit comments