Daniel Erez has uploaded a new change for review.

Change subject: webadmin: clean connection on new GlusterFS failure
......................................................................

webadmin: clean connection on new GlusterFS failure

StorageListModel -> saveNewGlusterStorage() -> AddStorageServerConnection:
Set connection ID (using action's return value) to enable connection
clean-up on failure [as 'StorageListModel -> cleanConnection()' invokes
RemoveStorageServerConnection iff connection's ID exists].

Change-Id: Id50f5230e5548e50ff17a7bc6af1bf098ccb8c15
Bug-Url: https://bugzilla.redhat.com/1021882
Signed-off-by: Daniel Erez <[email protected]>
---
M 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/storage/StorageListModel.java
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/26/20726/1

diff --git 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/storage/StorageListModel.java
 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/storage/StorageListModel.java
index 3a2c17f..8c5617d 100644
--- 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/storage/StorageListModel.java
+++ 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/storage/StorageListModel.java
@@ -1414,6 +1414,7 @@
                 StorageListModel storageListModel = (StorageListModel) 
result.getState();
                 VdcReturnValueBase vdcReturnValueBase = 
result.getReturnValue();
                 storageListModel.storageDomain.setStorage((String) 
vdcReturnValueBase.getActionReturnValue());
+                storageListModel.connection.setid((String) 
vdcReturnValueBase.getActionReturnValue());
             }
         };
 


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

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

Reply via email to