> +   private ServerApi serverApi;
> +   private Optional<? extends ServerWithSecurityGroupsApi> apiOption;
> +   private String zone;
> +
> +   @BeforeGroups(groups = {"integration", "live"})
> +   public void setupContext() {
> +      super.setup();
> +      zone = Iterables.getLast(api.getConfiguredZones(), "nova");
> +      serverApi = api.getServerApiForZone(zone);
> +      apiOption = api.getServerWithSecurityGroupsExtensionForZone(zone);
> +   }
> +
> +   private Server createServer(String regionId, String availabilityZoneId, 
> boolean shouldWork) {
> +      ServerApi serverApi = api.getServerApiForZone(regionId);
> +      CreateServerOptions options = new CreateServerOptions();
> +    //  options = options.availabilityZone(availabilityZoneId);

Remove commented code.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/181/files#r6984276

Reply via email to