>              return input.get() != null;
>           }
>        }, operationCompleteCheckTimeout, operationCompleteCheckInterval, 
> MILLISECONDS).apply(instance);
>  
> -      return new NodeAndInitialCredentials<Instance>(instance.get(), name, 
> credentials);
> +      if (options.getTags().size() > 0) {
> +         Operation tagsOperation = 
> api.getInstanceApiForProject(userProject.get()).setTagsInZone(template.getLocation().getId(),
> +                 name, options.getTags(), 
> instance.get().getTags().getFingerprint());
> +
> +         waitOperationDone(tagsOperation);
> +
> +         retry(new Predicate<AtomicReference<Instance>>() {
> +            @Override
> +            public boolean apply(AtomicReference<Instance> input) {
> +               
> input.set(api.getInstanceApiForProject(userProject.get()).getInZone(template.getLocation().getId(),
> +                       name));

Let's just leave things as they are - was more a curiosity question from my 
side, too.

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

Reply via email to