Martin Peřina has uploaded a new change for review.

Change subject: core: Remove RESTART action from FenceActionType
......................................................................

core: Remove RESTART action from FenceActionType

Removes unused RESTART action from FenceActionType, because restart
action is executed as complex action:

 1. Execute STOP if host is not powered off
 2. Wait for host to become powered off using STATUS
 3. Execute START
 4. Wait for host to become powered on using STATUS

Change-Id: Id12f162682c172a2fddf617e95dc8f1754ab73db
Bug-Url: https://bugzilla.redhat.com/1182510
Signed-off-by: Martin Perina <[email protected]>
---
M 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/pm/FenceActionType.java
1 file changed, 1 insertion(+), 4 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/38/39838/1

diff --git 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/pm/FenceActionType.java
 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/pm/FenceActionType.java
index 7455fa4..709b656 100644
--- 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/pm/FenceActionType.java
+++ 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/pm/FenceActionType.java
@@ -4,7 +4,6 @@
  * Action available in all fence agents
  */
 public enum FenceActionType {
-    RESTART("reboot"),
     START("on"),
     STOP("off"),
     STATUS("status");
@@ -37,9 +36,7 @@
     public static FenceActionType forValue(String value) {
         if (value != null && value.length() > 0) {
             String lowerCase = value.toLowerCase();
-            if ("reboot".equals(lowerCase)) {
-                return RESTART;
-            } else if ("on".equals(lowerCase)) {
+            if ("on".equals(lowerCase)) {
                 return START;
             } else if ("off".equals(lowerCase)) {
                 return STOP;


-- 
To view, visit https://gerrit.ovirt.org/39838
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id12f162682c172a2fddf617e95dc8f1754ab73db
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Martin Peřina <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to