Skip to content

Commit

Permalink
webadmin:Setting Preallocated disk to default option in HC environments.
Browse files Browse the repository at this point in the history
Change-Id: Idff1ecd82fedfea986744f07d6ce9808e6d6f1fa
Bug-Url: https://bugzilla.redhat.com/1644159
Signed-off-by: Kaustav Majumder <kmajumde@redhat.com>
  • Loading branch information
ezio-auditore authored and tnisan committed Mar 24, 2019
1 parent b8019b3 commit 8b0969c
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -524,6 +524,9 @@ public void updateBootableFrom(List<DiskModel> vmDisks) {

private void updateShareableDiskEnabled() {
StorageDomain storageDomain = getStorageDomain().getSelectedItem();
if (storageDomain != null && (StorageType.GLUSTERFS == storageDomain.getStorageType())) {
getVolumeType().setSelectedItem(VolumeType.Preallocated);
}
if (storageDomain != null && (StorageType.GLUSTERFS == storageDomain.getStorageType()
|| storageDomain.getStorageType().equals(StorageType.MANAGED_BLOCK_STORAGE))) {
getIsShareable().setEntity(false);
Expand Down

0 comments on commit 8b0969c

Please sign in to comment.