Hi,

Forgot to mention that I am using 1.8.0

And in what situations node id can be null?

On Thu, Oct 16, 2014 at 10:47 PM, Rajaratnam Rajkumar <rraju1...@gmail.com>
wrote:

> Hi,
>
> Is there any way to destroy a node without node id?
>
> Here is what I am trying to do.
>
>                                         String group = uniqueString();
>
>              ComputeService computeService = iaasProvider
>             .getComputeService();
>             Template template = // some template
>
>             // create and start a node
>             Set<? extends NodeMetadata> nodes = computeService
>             .createNodesInGroup(group, 1, template);
>
>             node = nodes.iterator().next();
>
>                                         if (null == node.getId()) {
>                                              // destroy the node
>                                         }
>
> In some situations I am getting node id null. I want to terminate that
> instance at that point.
>
> Please let me know how can do it?
>
> Thanks.
>

Reply via email to