removed JEOS os family

This commit is contained in:
Adrian Cole 2010-04-17 00:00:49 -07:00
parent 670c143cff
commit 8ce9f1565a
3 changed files with 3 additions and 5 deletions

View File

@ -33,7 +33,7 @@ import com.google.common.base.CaseFormat;
* @author Adrian Cole
*/
public enum OsFamily {
CENTOS, RHEL, FEDORA, DEBIAN, UBUNTU, TTYLINUX, JEOS, ARCH, GENTOO, WINDOWS;
CENTOS, RHEL, FEDORA, DEBIAN, UBUNTU, TTYLINUX, ARCH, GENTOO, WINDOWS;
public String value() {
return CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_HYPHEN, name());
}

View File

@ -18,8 +18,6 @@
*/
package org.jclouds.vcloud.terremark.compute.config;
import static org.jclouds.compute.domain.OsFamily.JEOS;
import java.util.Map;
import java.util.Set;
import java.util.SortedSet;
@ -79,7 +77,7 @@ public class TerremarkVCloudComputeServiceContextModule extends VCloudComputeSer
@Override
protected TemplateBuilder provideTemplate(TemplateBuilderImpl template) {
return template.osFamily(JEOS);
return template.imageNameMatches(".*JeOS.*");
}
private static final ComputeOptionsToSize sizeConverter = new ComputeOptionsToSize();

View File

@ -50,7 +50,7 @@ public class TerremarkVCloudComputeServiceLiveTest extends VCloudComputeServiceL
public void testTemplateBuilder() {
Template defaultTemplate = client.templateBuilder().build();
assertEquals(defaultTemplate.getImage().getArchitecture(), Architecture.X86_64);
assertEquals(defaultTemplate.getImage().getOsFamily(), OsFamily.JEOS);
assertEquals(defaultTemplate.getImage().getOsFamily(), OsFamily.UBUNTU);
assertEquals(defaultTemplate.getLocation().getId(), "32");
assertEquals(defaultTemplate.getSize().getCores(), 1.0d);
}