diff options
| author | Simon Rettberg | 2015-09-11 18:42:02 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2015-09-11 18:42:02 +0200 |
| commit | f3cdedc9861a1683a5d9d6e41eaa7c694cffc867 (patch) | |
| tree | 24d88b2e365fe8bbd2ab301499545c30f70f3c29 | |
| parent | [client] Image/Lectures: only push metadata/permissions if they were changed (diff) | |
| download | tutor-module-f3cdedc9861a1683a5d9d6e41eaa7c694cffc867.tar.gz tutor-module-f3cdedc9861a1683a5d9d6e41eaa7c694cffc867.tar.xz tutor-module-f3cdedc9861a1683a5d9d6e41eaa7c694cffc867.zip | |
[client] Remove unneeded checks
| -rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/ImageCreationWizard.java | 10 |
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!"); |
