summaryrefslogtreecommitdiffstats
path: root/src/com.gluster.storage.management.console
diff options
context:
space:
mode:
authorShireesh Anjal <shireesh@gluster.com>2011-08-07 22:10:29 +0530
committerShireesh Anjal <shireesh@gluster.com>2011-08-07 22:12:57 +0530
commit4a58ad742ec79b7cfafd962c71c42ca448fc8fcf (patch)
treecca6c3db331f08d26a00336e312b2f47bb5c8c1c /src/com.gluster.storage.management.console
parentce1306634f159392ca7e82b38f9146a62ec6016d (diff)
Introducing VolumeService class for all Volume related functionality
Diffstat (limited to 'src/com.gluster.storage.management.console')
-rw-r--r--src/com.gluster.storage.management.console/src/com/gluster/storage/management/console/dialogs/CreateVolumePage1.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/com.gluster.storage.management.console/src/com/gluster/storage/management/console/dialogs/CreateVolumePage1.java b/src/com.gluster.storage.management.console/src/com/gluster/storage/management/console/dialogs/CreateVolumePage1.java
index a326f6ff..eba32bb7 100644
--- a/src/com.gluster.storage.management.console/src/com/gluster/storage/management/console/dialogs/CreateVolumePage1.java
+++ b/src/com.gluster.storage.management.console/src/com/gluster/storage/management/console/dialogs/CreateVolumePage1.java
@@ -361,9 +361,7 @@ public class CreateVolumePage1 extends WizardPage {
private void addVolumeBricks() {
// first clear existing bricks, if any
- for(Brick brick : volume.getBricks()) {
- volume.removeBrick(brick);
- }
+ volume.getBricks().clear();
for (Device device : selectedDevices) {
Brick brick = new Brick(device.getServerName(), BRICK_STATUS.ONLINE, device.getMountPoint() + "/"