>The template produced has a location of type REGION (us/lasdev, us/las, >etc.,). ProfitBricks provisions a node to a datacenter though (ZONE). Then, >there's no method like TemplateBuilder#getLocationId() to check whether the >locationId was already set, so I was forced to parse again the property.
Then the right approach is to change the default implicit location supplier. Something like this in the compute service context module should work: ```java bind(ImplicitLocationSupplier.class).to(OnlyLocationOrFirstZone.class).in(Scopes.SINGLETON); ``` The `OnlyLocationOrFirstZone` already exists in jclouds and will only take into account zone locations. >P.S.: I removed the ProfitBricksTemplateBuilder#build(). It turns out, it >wasn't needed. Also I added this catch, since weirdly enough, it threw >Unparseable date: "2015-06-18T14:16:51+0000", even when the actual value >returned by the server is 2015-06-18T14:16:51Z. Perhaps you have more control on how the date is parsed if you inject the `DateService` instead? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs/pull/145#issuecomment-115162267
