diff options
author | ralph isenmann | 2021-07-08 14:29:07 +0200 |
---|---|---|
committer | ralph isenmann | 2021-07-08 14:29:07 +0200 |
commit | 10fa8dcb94fc231e48f7d594509d9cf0320cfad1 (patch) | |
tree | fd9582bb43215e835f56d7f5e4fb6fd59fb652c3 | |
parent | [client] fix blocking of dozmod during the finale state of a image download (diff) | |
download | tutor-module-10fa8dcb94fc231e48f7d594509d9cf0320cfad1.tar.gz tutor-module-10fa8dcb94fc231e48f7d594509d9cf0320cfad1.tar.xz tutor-module-10fa8dcb94fc231e48f7d594509d9cf0320cfad1.zip |
[client] fix classcast exception and import
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/util/ImageWrapper.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/util/ImageWrapper.java b/dozentenmodul/src/main/java/org/openslx/dozmod/util/ImageWrapper.java index 07c137ab..9e272dda 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/util/ImageWrapper.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/util/ImageWrapper.java @@ -5,9 +5,9 @@ import org.openslx.dozmod.Branding; import org.openslx.dozmod.gui.Gui; import org.openslx.dozmod.gui.helper.I18n; import org.openslx.dozmod.gui.helper.MessageType; -import org.openslx.dozmod.model.ContainerDefinition; import org.openslx.thrifthelper.TConst; import org.openslx.virtualization.configuration.VirtualizationConfigurationException; +import org.openslx.virtualization.configuration.container.ContainerDefinition; import org.openslx.virtualization.disk.DiskImage; import org.openslx.virtualization.disk.DiskImageException; @@ -49,7 +49,7 @@ public class ImageWrapper { // TODO In future maybe this is a check to distinguish between VM-Image and Container Image if (virtualizerId.equals(TConst.VIRT_DOCKER)) { - ContainerDefinition conDef = (ContainerDefinition) ContainerDefinition.fromByteArray(virtualizerConfig); + ContainerDefinition conDef = ContainerDefinition.fromByteArray(virtualizerConfig); conDef.saveLocal(destDir); try { |