> - public GetImageForVirtualGuest(SoftLayerApi api) {
> - this.api = api;
> - }
> -
> - public Image getImage(VirtualGuest guest) {
> - ProductOrder order = null;
> - // 'bad' orders have no start cpu's and cause the order lookup to
> fail.
> - if (guest.getStartCpus() < 1)
> - return null;
> - try {
> - order = api.getVirtualGuestApi().getOrderTemplate(guest.getId());
> - } catch (SoftLayerOrderItemDuplicateException e) {
> - // this is a workaround because SoftLayer throws sometimes 500
> internal server errors for the above method call
> - logger.warn(e, "Cannot get order template for
> virtualGuestId(%s)", guest.getId());
> +
> builder.privateAddresses(ImmutableSet.of(from.getPrimaryBackendIpAddress()));
> + if(from.getTagReferences() != null &&
> !from.getTagReferences().isEmpty()) {
[minor] space after the if.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/296/files#r12882238