> + this.locations = checkNotNull(locations, "locations");
> + this.imageReferenceToImage = imageReferenceToImage;
> + this.vmSizeToHardware = vmSizeToHardware;
> + this.credentialStore = credentialStore;
> + this.api = api;
> + }
> +
> + @Override
> + public NodeMetadata apply(final VMDeployment from) {
> + final NodeMetadataBuilder builder = new NodeMetadataBuilder();
> + final Deployment deployment = from.deployment;
> + builder.id(deployment.name());
> + builder.providerId(deployment.name());
> + builder.name(deployment.name());
> + String group = deployment.name();
> + int index = group.lastIndexOf("-");
Take care. When using the group naming convention the separator is configurable
via properties. If you are splitting such generated names, then consider using
the group naming convention methods to get the group name.
---
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/267/files/bae5d6dfcdb26e31057db4551c5996836666a31b#r63967447