> +   public NodeMetadata apply(Container container) {
> +      String name = cleanUpName(container.getName());
> +      String group = nodeNamingConvention.extractGroup(name);
> +      NodeMetadataBuilder builder = new NodeMetadataBuilder();
> +      builder.ids(container.getId())
> +              .name(name)
> +              .group(group)
> +              .hostname(container.getConfig().getHostname())
> +               // TODO Set up hardware
> +              .hardware(new HardwareBuilder()
> +                      .id("")
> +                      .ram(container.getConfig().getMemory())
> +                      .processor(new 
> Processor(container.getConfig().getCpuShares(), 
> container.getConfig().getCpuShares()))
> +                      .build());
> +      // TODO Set up location properly
> +      LocationBuilder locationBuilder = new LocationBuilder();

If I'm not wrong, the default location, if no locations are configured is the 
"provider". You should inject here the location supplier and use that location, 
as the provider is already the host.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/57/files#r12937658

Reply via email to