> +import org.jclouds.compute.domain.ImageBuilder;
> +import org.jclouds.compute.domain.OperatingSystem;
> +import org.jclouds.compute.domain.OsFamily;
> +import org.jclouds.profitbricks.domain.OSType;
> +
> +public class PBImageToImage implements 
> Function<org.jclouds.profitbricks.domain.image.Image, Image> {
> +
> +   @Override
> +   public Image apply(org.jclouds.profitbricks.domain.image.Image i) {
> +      checkNotNull(i);
> +
> +//        Location location = new LocationBuilder()
> +//                .id( null ) 
> +//                .description( i.getRegion().toString() )
> +//                .scope( LocationScope.REGION )
> +//                .build();

I'm not sure if this answers your question but, in PB the possible "locations" 
are only NORTH_AMERICA, EUROPE - which in this case the value of 
<code>i.getRegion()</code>. The requirement is that, an image is only usable if 
it has the same region as the Virtual Data Center.

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

Reply via email to