> + Map<DeploymentStatus, Status>
> deploymentStatusToStatus, Map<String, Status> instanceStatusToStatus) {
> + this.nodeNamingConvention = checkNotNull(namingConvention,
> "namingConvention").createWithoutPrefix();
> + this.images = checkNotNull(images, "images");
> + this.hardwares = checkNotNull(hardwares, "hardwares");
> + this.locations = checkNotNull(locations, "locations");
> + this.deploymentStatusToStatus = checkNotNull(deploymentStatusToStatus);
> + this.instanceStatusToStatus = instanceStatusToStatus;
> + }
> +
> + @Override
> + public NodeMetadata apply(VirtualMachine from) {
> + NodeMetadataBuilder builder = new NodeMetadataBuilder();
> + builder.ids(from.getServiceName() + ":" + from.getRoleName());
> + builder.name(from.getServiceName() + ":" + from.getRoleName());
> +// Location location = Iterables.find(locations.get(),
> LocationPredicates.idEquals(from.getDatacenter().getId() + ""));
> +// builder.location(location);
The location must be set in the node.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/132/files#r24748643