From 7c2f281d64b1fccc7faa22b8851b0af7dd53bab6 Mon Sep 17 00:00:00 2001 From: "adrian.f.cole" Date: Wed, 23 Dec 2009 06:26:23 +0000 Subject: [PATCH] Issue 112: updated to install more ports git-svn-id: http://jclouds.googlecode.com/svn/trunk@2507 3d8758e0-26b5-11de-8745-db77d3ebf521 --- .../terremark/compute/TerremarkVCloudComputeService.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/vcloud/terremark/src/main/java/org/jclouds/vcloud/terremark/compute/TerremarkVCloudComputeService.java b/vcloud/terremark/src/main/java/org/jclouds/vcloud/terremark/compute/TerremarkVCloudComputeService.java index f98ac87627..9ee506cc9d 100644 --- a/vcloud/terremark/src/main/java/org/jclouds/vcloud/terremark/compute/TerremarkVCloudComputeService.java +++ b/vcloud/terremark/src/main/java/org/jclouds/vcloud/terremark/compute/TerremarkVCloudComputeService.java @@ -85,9 +85,7 @@ public class TerremarkVCloudComputeService implements ComputeService { public CreateServerResponse createServer(String name, Profile profile, Image image) { String id = computeClient.start(name, image, 1, 512, ImmutableMap. of()); TerremarkVApp vApp = tmClient.getVApp(id); - // bug creating more than one internet service returns 503 or 500 - // InetAddress publicIp = computeClient.createPublicAddressMappedToPorts(vApp, 22, 80, 8080); - InetAddress publicIp = computeClient.createPublicAddressMappedToPorts(vApp, 22); + InetAddress publicIp = computeClient.createPublicAddressMappedToPorts(vApp, 22, 80, 443, 8080); return new CreateServerResponseImpl(vApp.getId(), vApp.getName(), vAppStatusToServerState .get(vApp.getStatus()), ImmutableSet. of(publicIp), vApp .getNetworkToAddresses().values(), 22, LoginType.SSH, new Credentials("vcloud",