summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/ImageCreationWizard.java
diff options
context:
space:
mode:
authorSimon Rettberg2015-09-11 18:42:02 +0200
committerSimon Rettberg2015-09-11 18:42:02 +0200
commitf3cdedc9861a1683a5d9d6e41eaa7c694cffc867 (patch)
tree24d88b2e365fe8bbd2ab301499545c30f70f3c29 /dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/ImageCreationWizard.java
parent[client] Image/Lectures: only push metadata/permissions if they were changed (diff)
downloadtutor-module-f3cdedc9861a1683a5d9d6e41eaa7c694cffc867.tar.gz
tutor-module-f3cdedc9861a1683a5d9d6e41eaa7c694cffc867.tar.xz
tutor-module-f3cdedc9861a1683a5d9d6e41eaa7c694cffc867.zip
[client] Remove unneeded checks
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/ImageCreationWizard.java')
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/ImageCreationWizard.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/ImageCreationWizard.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/ImageCreationWizard.java
index 00890ad2..ebf91974 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/ImageCreationWizard.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/ImageCreationWizard.java
@@ -115,12 +115,10 @@ public class ImageCreationWizard extends Wizard implements UiFeedback {
if (uploadWizardState.selectedOs == null) {
LOGGER.error("No OS set in state!");
return false;
- } else {
- if (!(uploadWizardState.selectedOs.isSetArchitecture()
- && uploadWizardState.selectedOs.isSetOsId() && uploadWizardState.selectedOs.isSetOsName() && uploadWizardState.selectedOs.isSetVirtualizerOsId())) {
- LOGGER.error("OS has missing fields: " + uploadWizardState.selectedOs.toString());
- return false;
- }
+ }
+ if (!uploadWizardState.selectedOs.isSetOsId()) {
+ LOGGER.error("OS has no id: " + uploadWizardState.selectedOs.toString());
+ return false;
}
if (uploadWizardState.meta == null) {
LOGGER.error("No vm meta data set in state!");