>        return json.toJson(properties);
>     }
>  
>     private void addStorageResource() {
> -      String storageAccountName = name.replaceAll("[^A-Za-z0-9 ]", "") + 
> "storage";
> +      String storageAccountName = name.replaceAll("[^A-Za-z0-9 ]", "") + 
> "stor";
> +
> +      String storageName = template.getImage().getName();
> +      if (storageName.substring(0, 
> CUSTOM_IMAGE_PREFIX.length()).equals(CUSTOM_IMAGE_PREFIX)) {

Use `startsWith`

---
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/291/files/8a39037237f5cccc7d100bc58a9a82bdb89924b1#r67887671

Reply via email to