summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/thrift/ThriftActions.java
diff options
context:
space:
mode:
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/thrift/ThriftActions.java')
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/thrift/ThriftActions.java31
1 files changed, 0 insertions, 31 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/thrift/ThriftActions.java b/dozentenmodul/src/main/java/org/openslx/dozmod/thrift/ThriftActions.java
index 96c4d1f6..ab3db38b 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/thrift/ThriftActions.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/thrift/ThriftActions.java
@@ -450,37 +450,6 @@ public class ThriftActions {
return;
ImageWrapper.unpack(virtualizerId, tmpDiskFile, imageName, destDir, osId,
fTransInf.getMachineDescription());
- DiskImage diskImage = null;
- String ext = virtualizerId;
- try {
- diskImage = new DiskImage(tmpDiskFile);
- } catch (IOException | UnknownImageFormatException e) {
- LOGGER.warn("Could not open downloaded image for analyze step", e);
- }
- if (diskImage != null) {
- if (diskImage.format != null) {
- ext = diskImage.format.extension;
- }
- if (diskImage.isCompressed) {
- Gui.asyncMessageBox(
- I18n.THRIFT.getString("ThriftActions.Message.warning.diskImageCompressed",
- imageName, Branding.getServiceFAQWebsite()),
- MessageType.WARNING, null, null);
- }
- }
- File destImage = new File(destDir.getAbsolutePath(), VmWrapper.generateFilename(
- imageName, ext));
- destImage.delete();
- if (!tmpDiskFile.renameTo(destImage)) {
- destImage = tmpDiskFile; // Must be Windows...
- }
- try {
- VmWrapper.wrapVm(destImage, imageName, fTransInf.getMachineDescription(),
- virtualizerId, osId, diskImage);
- } catch (MetaDataMissingException | IOException e) {
- Gui.asyncMessageBox(I18n.THRIFT.getString("ThriftActions.Message.warning.couldNotWrapVM"),
- MessageType.WARNING, LOGGER, e);
- }
}
});