> + }
> +
> + @Override
> + public ImageTemplate buildImageTemplateFromNode(String name, String id) {
> + name = name.toLowerCase();
> + return new
> ImageTemplateBuilder.CloneImageTemplateBuilder().nodeId(id).name(name).build();
> + }
> +
> + @Override
> + public ListenableFuture<Image> createImage(ImageTemplate template) {
> + final CloneImageTemplate cloneTemplate = (CloneImageTemplate) template;
> + String id = cloneTemplate.getSourceNodeId();
> + final String storageAccountName = id.replaceAll("[^A-Za-z0-9 ]", "") +
> "stor";
> +
> + boolean generalized = false;
> + while (!generalized) {
Hmm... if I correctly remember, there was some timing issue and first call was
not always working, but second call has been working if first did not :) I
guess we can leave it like this or then we should just remove whole while loop
and trust that it works without that (as I cannot reproduce that issue now).
---
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/291/files/8a39037237f5cccc7d100bc58a9a82bdb89924b1#r68011875