Muli Salem has uploaded a new change for review.

Change subject: core: Add SetNonOperationalVds to ExecutionMsgs (#843786)
......................................................................

core: Add SetNonOperationalVds to ExecutionMsgs (#843786)

https://bugzilla.redhat.com/843786

Adding a job for SetNonOperationalVds in the
ExecutionMessages.properties file. Also making sure
Vds is set in JobMessageProperties.

Change-Id: I3c5a54fde862e20285ba5775bca5c4a549282b62
Signed-off-by: Muli Salem <[email protected]>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/MaintananceVdsCommand.java
M 
backend/manager/modules/dal/src/main/resources/bundles/ExecutionMessages.properties
2 files changed, 11 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/10/7710/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/MaintananceVdsCommand.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/MaintananceVdsCommand.java
index 6d8e707..aaaf1d6 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/MaintananceVdsCommand.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/MaintananceVdsCommand.java
@@ -193,4 +193,14 @@
             
Backend.getInstance().runInternalAction(VdcActionType.DisconnectHostFromStoragePoolServers,
 tempVar);
         }
     }
+
+    @Override
+    public Map<String, String> getJobMessageProperties() {
+        if (jobProperties == null) {
+            jobProperties = 
Collections.singletonMap(VdcObjectType.VDS.name().toLowerCase(), getVdsName());
+        }
+
+        return jobProperties;
+    }
+
 }
diff --git 
a/backend/manager/modules/dal/src/main/resources/bundles/ExecutionMessages.properties
 
b/backend/manager/modules/dal/src/main/resources/bundles/ExecutionMessages.properties
index 1308076..2b8f658 100644
--- 
a/backend/manager/modules/dal/src/main/resources/bundles/ExecutionMessages.properties
+++ 
b/backend/manager/modules/dal/src/main/resources/bundles/ExecutionMessages.properties
@@ -67,6 +67,7 @@
 job.MaintananceVds=Moving Host ${VDS} to Maintenance
 job.VdsNotRespondingTreatment=Handling non responsive Host ${VDS}
 job.ReconstructMasterDomain=Reconstructing master domain on Data Center 
${StoragePool}
+job.SetNonOperationalVds=Setting Host {$VDS} to Non-Operational mode.
 
 # Step types
 step.VALIDATING=Validating


--
To view, visit http://gerrit.ovirt.org/7710
To unsubscribe, visit http://gerrit.ovirt.org/settings

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

Reply via email to