> +// virtualMachineConfigSpec.setBootOptions(bootOptions);
> +
> + cloneSpec.setConfig(virtualMachineConfigSpec);
> +
> + vOptions.getPublicKey();
> +
> + VirtualMachine cloned = null;
> + try {
> + cloned = cloneMaster(master, tag, name, cloneSpec,
> vOptions.vmFolder());
> + Set<String> tagsFromOption = vOptions.getTags();
> + if (tagsFromOption.size() > 0) {
> + StringBuilder tags = new StringBuilder();
> + for (String vmTag : vOptions.getTags()) {
> + tags.append(vmTag).append(",");
> + }
> + tags.deleteCharAt(tags.length() - 1);
Use Guava's Joiner to concatenate this.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/61/files#r18061203