summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java7
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImagePublishedWindow.java7
2 files changed, 12 insertions, 2 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java
index 7809069d..93c1e630 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java
@@ -475,7 +475,12 @@ public class ImageDetailsWindow extends ImageDetailsWindowLayout
*/
private void uploadToMaster() {
// 04.2018: bail if we the user tries to publish a non-vmware image.
- if (Session.hasFeature(Feature.MULTIPLE_HYPERVISORS) && !TConst.VIRT_VMWARE.equals(image.virtId)) {
+ // 07.2024: allow vmware, virtualbox and qemu. remove check completely?
+ if (Session.hasFeature(Feature.MULTIPLE_HYPERVISORS) && !(
+ TConst.VIRT_VMWARE.equals(image.virtId) ||
+ TConst.VIRT_VIRTUALBOX.equals(image.virtId) ||
+ TConst.VIRT_QEMU.equals(image.virtId)
+ )) {
Gui.showMessageBox(
I18n.WINDOW.getString("ImageDetails.Message.error.publishNonVMWareImage",
MetaDataCache.getVirtualizerById(image.virtId).virtName),
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImagePublishedWindow.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImagePublishedWindow.java
index 4c2d4f7c..7bc025a5 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImagePublishedWindow.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImagePublishedWindow.java
@@ -263,11 +263,16 @@ public class ImagePublishedWindow extends ImagePublishedWindowLayout implements
// 04.2018: Safety check to hide the non-vmware images from the list
// in case they somehow manage to get published. Remove this when we
// support publishing images from other hypervisors.
+ // 07.2024: allow vmware, virtualbox and qemu. remove check completely?
if (Session.hasFeature(Feature.MULTIPLE_HYPERVISORS)) {
for (Iterator<ImageSummaryRead> iter = imagePublishedList.listIterator(); iter
.hasNext();) {
ImageSummaryRead current = iter.next();
- if (current != null && !current.virtId.equals(TConst.VIRT_VMWARE)) {
+ if (current != null && !(
+ current.virtId.equals(TConst.VIRT_VMWARE) ||
+ current.virtId.equals(TConst.VIRT_VIRTUALBOX) ||
+ current.virtId.equals(TConst.VIRT_QEMU)
+ )) {
iter.remove();
}
}