nacx commented on this pull request.


> +import static com.google.inject.internal.util.$Preconditions.checkNotNull;
+
+@Singleton
+public class DatacenterToLocation implements Function<Datacenter, Location> {
+
+   private final JustProvider justProvider;
+
+   @Inject
+   public DatacenterToLocation(JustProvider justProvider) {
+      this.justProvider = checkNotNull(justProvider, "justProvider");
+   }
+
+   @Override
+   public Location apply(final Datacenter datacenter) {
+      return new 
LocationBuilder().id(datacenter.id()).description(datacenter.displayName())
+            
.parent(getOnlyElement(justProvider.get())).scope(LocationScope.ZONE)

Can the same credentials be configured to access all available regions?
Are the region endpoints fixed? (Something we can preconfigure in the provider 
metadata properties)? If so, I expand a bit on how to properly configure this, 
in a similar way we do with `aws-ec2` (there are there also different endpoints 
for each region).


-- 
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/423#discussion_r158476108

Reply via email to