> }
>
> @Provides
> @Singleton
> @Memoized
> public Supplier<Map<URI, ? extends Hardware>> provideHardwaresMap(
> - final Supplier<Set<? extends Hardware>> hardwares) {
> - return new Supplier<Map<URI, ? extends Hardware>>() {
> - @Override
> - public Map<URI, ? extends Hardware> get() {
> - return uniqueIndex(hardwares.get(), new Function<Hardware,
> URI>() {
> - @Override
> - public URI apply(Hardware input) {
> - return input.getUri();
> - }
> - });
> - }
> - };
> + AtomicReference<AuthorizationException> authException,
> + final Supplier<Set<? extends Hardware>> hardwares,
Different animals. It's a bit annoying, but we really need both the set of
hardwares (which is coming from ComputeServiceAdapterContextModule's
providesHardware, and below that, GoogleComputeEngineServiceAdapter's
listHardwareProfiles) as in every other compute API/provider, and a mapping of
URIs to hardware, specifically for GCE.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/16/files#r5377898