>           // 'bad' orders have no start cpu's and cause the order lookup to 
> fail.
>           if (guest.getStartCpus() < 1)
>              return null;
> -         ProductOrder order = 
> client.getVirtualGuestClient().getOrderTemplate(guest.getId());
> -         if (order == null)
> +         try {
> +            order = 
> client.getVirtualGuestClient().getOrderTemplate(guest.getId());
> +         } catch (RuntimeException e) {
> +            logger.warn("Cannot getOrderTemplate " + guest.getId(), e);
> +            return null;
> +         }
> +            if (order == null)

indentation is off on this line

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/199/files#r7565035

Reply via email to