andreaturli commented on this pull request.
> + for (String regionId : availableLocationNames) {
+ instanceTypeIds.addAll(getInstanceTypeId(regionId));
+ }
+
+ List<InstanceType> instanceTypes =
FluentIterable.from(api.instanceApi().listTypes())
+ .filter(new Predicate<InstanceType>() {
+ @Override
+ public boolean apply(@Nullable InstanceType input) {
+ return contains(instanceTypeIds.build(),
input.instanceTypeId());
+ }
+ }).toList();
+
+ return instanceTypes;
+ }
+
+ private List<String> getInstanceTypeId(String regionId) {
ok
--
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/443#discussion_r207133364