> @@ -265,12 +278,18 @@ private void checkAndSetImageAvailability(List<VMImage> 
> images, Collection<Strin
>     @Override
>     public VMImage getImage(final String id) {
>        String[] fields = VMImageToImage.decodeFieldsFromUniqueId(id);
> -      if (fields[2].startsWith(CUSTOM_IMAGE_PREFIX)) {
> -         String name = fields[2].substring(CUSTOM_IMAGE_PREFIX.length());
> -         String sku = fields[3];
> -         String version = "1";
> -         VMImage ref = VMImage.create(CUSTOM_IMAGE_PREFIX + azureGroup, 
> CUSTOM_IMAGE_PREFIX + name, sku, version, fields[0], false);
> -         return ref;
> +      boolean custom = fields.length == 6 ? true : false;

Just `boolean custom = fields.length == 6;`?

---
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#r73308016

Reply via email to