fixed image matches

This commit is contained in:
Adrian Cole 2011-09-27 10:37:15 -07:00
parent ea83b1e47d
commit 3af390a4d3
1 changed files with 14 additions and 14 deletions

View File

@ -53,20 +53,20 @@ public class SoftLayerTemplateBuilderLiveTest extends BaseTemplateBuilderLiveTes
public boolean apply(OsFamilyVersion64Bit input) { public boolean apply(OsFamilyVersion64Bit input) {
// For each os-type both 32- and 64-bit are supported. // For each os-type both 32- and 64-bit are supported.
switch (input.family) { switch (input.family) {
case UBUNTU: case UBUNTU:
return !(input.version.equals("10.04") || input.version.equals("8")); return input.version.equals("") || input.version.equals("10.04") || input.version.equals("8");
case DEBIAN: case DEBIAN:
return !(input.version.equals("5.0")); return input.version.equals("") || input.version.equals("5.0");
case FEDORA: case FEDORA:
return !(input.version.equals("13") || input.version.equals("15")); return input.version.equals("") || input.version.equals("13") || input.version.equals("15");
case RHEL: case RHEL:
return !(input.version.equals("5") || input.version.equals("6")); return input.version.equals("") || input.version.equals("5") || input.version.equals("6");
case CENTOS: case CENTOS:
return !(input.version.equals("5") || input.version.equals("6.0")); return input.version.equals("") || input.version.equals("5") || input.version.equals("6.0");
case WINDOWS: case WINDOWS:
return !(input.version.equals("2003") || input.version.equals("2008")); return input.version.equals("") || input.version.equals("2003") || input.version.equals("2008");
default: default:
return false; return false;
} }
} }