From 4a58ad742ec79b7cfafd962c71c42ca448fc8fcf Mon Sep 17 00:00:00 2001 From: Shireesh Anjal Date: Sun, 7 Aug 2011 22:10:29 +0530 Subject: Introducing VolumeService class for all Volume related functionality --- .../gluster/storage/management/console/dialogs/CreateVolumePage1.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/com.gluster.storage.management.console') 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() + "/" -- cgit