From 29a5360d7131090c5acad024c3b5ec56eda09a20 Mon Sep 17 00:00:00 2001 From: Andrew Bayer Date: Fri, 2 Aug 2013 09:55:51 -0700 Subject: [PATCH] Fixing API casting for cloudsigma-zrh live test. --- .../compute/CloudSigmaZurichComputeServiceLiveTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/cloudsigma-zrh/src/test/java/org/jclouds/cloudsigma/compute/CloudSigmaZurichComputeServiceLiveTest.java b/providers/cloudsigma-zrh/src/test/java/org/jclouds/cloudsigma/compute/CloudSigmaZurichComputeServiceLiveTest.java index 38e49762c4..1382beaae7 100644 --- a/providers/cloudsigma-zrh/src/test/java/org/jclouds/cloudsigma/compute/CloudSigmaZurichComputeServiceLiveTest.java +++ b/providers/cloudsigma-zrh/src/test/java/org/jclouds/cloudsigma/compute/CloudSigmaZurichComputeServiceLiveTest.java @@ -61,7 +61,7 @@ public class CloudSigmaZurichComputeServiceLiveTest extends CloudSigmaComputeSer Set nodes = client.createNodesInGroup(group, 1, template); NodeMetadata node = get(nodes, 0); - CloudSigmaApi api = CloudSigmaApi.class.cast(client.getContext()); + CloudSigmaApi api = client.getContext().unwrapApi(CloudSigmaApi.class); // Note: I wanted to use node.getHardware().getVolumes() but there is no // way to go from a Volume to a DriveInfo