> +    * @param size
> +    *           Size of the instance
> +    * @return Instance object in active state or NULL
> +    */
> +   public Instance getWorkingInstance(String zone, String name, String 
> flavorId, int size) {
> +      InstanceApi instanceApi = api.getInstanceApiForZone(zone);
> +      for (int retries = 0; retries < 10; retries++) {
> +         Instance instance = null;
> +         try {
> +            instance = instanceApi.create(flavorId, size, name);
> +         } catch (Exception e) {
> +
> +            try {
> +               Thread.sleep(50);
> +            } catch (InterruptedException ie) {
> +            }

Any comments on this try block? What is it for? And is there a 
"sleepUninterruptibly" call somewhere? If not, name the InterruptedException 
`ignored` or something like that..?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/12/files#r5111544

Reply via email to