> + String osDisk = "";
> + String dataDisk = "";
> +
> + for (BlobProperties blob : blobList) {
> + 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();
> + }
Same here. Let the method fail on uncontrolled errors.
---
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/cfe9f0b3aaebedf1e91a8934cab0d7f930974f63#r73664533