summaryrefslogtreecommitdiffstats
path: root/src/com.gluster.storage.management.gateway
diff options
context:
space:
mode:
authorShireesh Anjal <shireesh@gluster.com>2011-08-08 21:10:28 +0530
committerShireesh Anjal <shireesh@gluster.com>2011-08-08 21:11:53 +0530
commitaf90f2ca0b63d6acd6f168e61b7e6b903a30eaa3 (patch)
tree29022bcac43601f2246397c9091591fb401cd9ca /src/com.gluster.storage.management.gateway
parent333fe67bdfb1c63bab9f1b1d9c2259540806d091 (diff)
Fixed Bug 3201 - Task view should open in GUI when a task is started.
Diffstat (limited to 'src/com.gluster.storage.management.gateway')
-rw-r--r--src/com.gluster.storage.management.gateway/src/com/gluster/storage/management/gateway/constants/VolumeOptionsDefaults.java10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/com.gluster.storage.management.gateway/src/com/gluster/storage/management/gateway/constants/VolumeOptionsDefaults.java b/src/com.gluster.storage.management.gateway/src/com/gluster/storage/management/gateway/constants/VolumeOptionsDefaults.java
index 967b670d..4c39b97d 100644
--- a/src/com.gluster.storage.management.gateway/src/com/gluster/storage/management/gateway/constants/VolumeOptionsDefaults.java
+++ b/src/com.gluster.storage.management.gateway/src/com/gluster/storage/management/gateway/constants/VolumeOptionsDefaults.java
@@ -161,14 +161,8 @@ public class VolumeOptionsDefaults {
}
public VolumeOptionInfoListResponse parseXML(String xml) {
- xml = xml.replaceAll("<volumeOptionsDefaults>", "<options>")
- .replaceAll("</volumeOptionsDefaults>", "</options>").replaceAll("<volumeOption>", "<option>")
- .replaceAll("</volumeOption>", "</option>");
- Object response = serverUtil.unmarshal(VolumeOptionInfoListResponse.class, xml);
- if (response instanceof Status) {
- throw new GlusterRuntimeException(((Status) response).getMessage());
- }
- return (VolumeOptionInfoListResponse) response;
+ xml = xml.replaceAll("<Description>", "<description>").replaceAll("</Description>", "</description>");
+ return serverUtil.unmarshal(VolumeOptionInfoListResponse.class, xml);
}