Description
ScriptBasedClusterAction is using NPE for flow control.
public Cluster execute(ClusterSpec clusterSpec, Cluster cluster) throws IOException, InterruptedException {
...
for (String role : instanceTemplate.getRoles()) {
try
catch (NullPointerException e)
{ throw new IllegalArgumentException("No handler for role " + role); }}
...
}
I just lost about an hour trying to find out why the actionhandler was not being registered while the NPE came from the beforeAction() call.