> +               for (BlobProperties blob : blobList) {
> +                  System.out.println(blob.getName());
> +                  String name = blob.getName();
> +
> +                  if (dataDisk.length() == 0) dataDisk = name.substring(1 + 
> name.lastIndexOf('/'));
> +                  else if (osDisk.length() == 0) osDisk = name.substring(1 + 
> name.lastIndexOf('/'));
> +               }
> +               final VMImage ref = VMImage.create(group, storageAccountName, 
> osDisk, dataDisk, "test-create-image", "custom", location);
> +               list.add(ref);
> +            }
> +         }
> +      } catch (Exception e) {
> +         e.printStackTrace();
> +      }
> +      try {
> +         azureBlob.close();

Move to a finally block for the previous try

---
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/305/files/93cecad810be0366709b28b2dbf3259efe10dec2#r73309041

Reply via email to