Updated Branches: refs/heads/master a14c03ba0 -> 29a5360d7
Fixing API casting for cloudsigma-zrh live test. Project: http://git-wip-us.apache.org/repos/asf/incubator-jclouds/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-jclouds/commit/29a5360d Tree: http://git-wip-us.apache.org/repos/asf/incubator-jclouds/tree/29a5360d Diff: http://git-wip-us.apache.org/repos/asf/incubator-jclouds/diff/29a5360d Branch: refs/heads/master Commit: 29a5360d7131090c5acad024c3b5ec56eda09a20 Parents: a14c03b Author: Andrew Bayer <[email protected]> Authored: Fri Aug 2 09:55:51 2013 -0700 Committer: Andrew Bayer <[email protected]> Committed: Fri Aug 2 09:55:51 2013 -0700 ---------------------------------------------------------------------- .../cloudsigma/compute/CloudSigmaZurichComputeServiceLiveTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/29a5360d/providers/cloudsigma-zrh/src/test/java/org/jclouds/cloudsigma/compute/CloudSigmaZurichComputeServiceLiveTest.java ---------------------------------------------------------------------- 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 38e4976..1382bea 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<? extends NodeMetadata> 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
