> + public static final Map<VirtualMachinePowerState, NodeMetadata.Status>
> toPortableNodeStatus = ImmutableMap
> + .<VirtualMachinePowerState, NodeMetadata.Status> builder()
> + .put(VirtualMachinePowerState.poweredOff,
> NodeMetadata.Status.TERMINATED)
> + .put(VirtualMachinePowerState.poweredOn,
> NodeMetadata.Status.RUNNING)
> + .put(VirtualMachinePowerState.suspended,
> NodeMetadata.Status.SUSPENDED).build();
> +
> + @Singleton
> + @Provides
> + protected Map<VirtualMachinePowerState, NodeMetadata.Status>
> toPortableNodeStatus() {
> + return toPortableNodeStatus;
> + }
> +
> + @Provides
> + @Singleton
> + protected Function<Supplier<NodeMetadata>, ServiceInstance> client() {
> + return new Function<Supplier<NodeMetadata>, ServiceInstance>() {
Why is this a function that takes a `NodeMetadata` if it is not used?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/61/files#r14184025