> +            }
> +
> +            Deployment deployment = 
> api.getDeploymentApi(resourceGroupName).create(name, deploymentTemplate);
> +
> +            if (deployment != null) {
> +               VMDeployment vmDeployment = new VMDeployment();
> +               vmDeployment.deployment = deployment;
> +               deployments.add(vmDeployment);
> +            } else {
> +               logger.debug("Failed to create deployment!");
> +            }
> +            return !deployments.isEmpty();
> +         }
> +      }, azureComputeConstants.operationTimeout(), 1, SECONDS).apply(name)) {
> +         final String illegalStateExceptionMessage = format("Deployment %s 
> was not created within %sms so it will be destroyed.",
> +                 name, azureComputeConstants.operationTimeout());

This should be using the [common compute service "node running" 
timeout](https://github.com/jclouds/jclouds/blob/master/compute/src/main/java/org/jclouds/compute/reference/ComputeServiceConstants.java#L99-L101).
 You can inject the timeouts class here to access the different timeouts.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/267/files/bae5d6dfcdb26e31057db4551c5996836666a31b#r63964543

Reply via email to