destroyNodesMatching still returns all nodes instead of terminated?
Hey,
I have noticed that in that in 1.5.0-alpha3 an additional notNull filter was added to the BaseComputeService.destroyNodesMatching method - and I assume it is in order to fix the bug in which the method returned all the nodes requested for termination (including nodes that were not terminated due to IllegalStateException).
Looking at the new code, I think that this:
doDestroyNode(from.getId());
return from;
Should be
return doDestroyNode(from.getId());
As from can't be null...
from can't be null, but the returnVal of doDestroyNode can. The intent of this message was to return the last known running state, so that's why it is returning in this way. make sense?
Oh. OK... so the @Nullable and the "destroyed" log message at the end are very confusing. I think returning only the ones that were actually terminated makes more sense to me and more usable.
Risk of being forgotten. Can you open a github issue ?
Sure but can you please tell me how? I thought this is a github issue... https://github.com/jclouds/jclouds/issues/766
(Blush) whoops thought this was a pull request. Nevermind!