diff options
Diffstat (limited to 'src/com.gluster.storage.management.core')
| -rw-r--r-- | src/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/GlusterUtil.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/GlusterUtil.java b/src/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/GlusterUtil.java index 35bba55d..38de196a 100644 --- a/src/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/GlusterUtil.java +++ b/src/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/GlusterUtil.java @@ -178,11 +178,9 @@ public class GlusterUtil { List<String> command = prepareVolumeCreateCommand(volume, bricks, count, volumeType, transportTypeStr); ProcessResult result = processUtil.executeCommand(command); if(!result.isSuccess()) { - // TODO: Perform cleanup on all nodes before returning return new Status(result); } - - return createOptions(volume); + return new Status(result); } private List<String> prepareVolumeCreateCommand(Volume volume, List<String> bricks, int count, String volumeType, @@ -202,7 +200,7 @@ public class GlusterUtil { return command; } - private Status createOptions(Volume volume) { + public Status createOptions(Volume volume) { Map<String, String> options = volume.getOptions(); if (options != null) { for (Entry<String, String> option : options.entrySet()) { |
