Maor Lipchuk has uploaded a new change for review.

Change subject: core: Validate only if domian exists
......................................................................

core: Validate only if domian exists

Registeration of a disk is only a DB operation and does not encounter
any VDS commands, therefore there is no need to validate if the Storage
Domain is active

Change-Id: I71c138ede22808b5a887e9b9982c154e5591d5c9
Bug-Url: https://bugzilla.redhat.com/??????
Signed-off-by: Maor Lipchuk <[email protected]>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RegisterDiskCommand.java
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/46/32746/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RegisterDiskCommand.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RegisterDiskCommand.java
index 07a8cf8..cbe7e0f 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RegisterDiskCommand.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RegisterDiskCommand.java
@@ -42,7 +42,7 @@
             return false;
         }
 
-        if (!validate(new 
StorageDomainValidator(getStorageDomain()).isDomainExistAndActive())) {
+        if (!validate(new 
StorageDomainValidator(getStorageDomain()).isDomainExist())) {
             addCanDoActionMessageVariable("diskId", 
getParameters().getDiskImage().getId());
             addCanDoActionMessageVariable("domainId", getStorageDomainId());
             
addCanDoActionMessage(VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_UNAVAILABLE);


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

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

Reply via email to