Fixing API casting for cloudsigma-zrh live test.

This commit is contained in:
Andrew Bayer 2013-08-02 09:55:51 -07:00
parent a14c03ba0b
commit 29a5360d71
1 changed files with 1 additions and 1 deletions

View File

@ -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