-
Bug
-
Resolution: Done
-
Critical
-
7.0.0.Beta1
-
None
This made the wrong choice:
final ModelNode deploymentAdd = new ModelNode();
// TODO decide whether deployments are an attribute of list type or a child
// deploymentAdd.get(OP_ADDR).set(address).add(DEPLOYMENT, uniqueName);
// deploymentAdd.get(OP).set(ADD);
deploymentAdd.get(OP_ADDR).set(address);
deploymentAdd.get(OP).set("add-deployment");
deploymentAdd.get(REQUEST_PROPERTIES, "unique-name").set(uniqueName);
deploymentAdd.get(REQUEST_PROPERTIES, "runtime-name").set(runtimeName);
deploymentAdd.get(REQUEST_PROPERTIES, "sha1").set(hash);
deploymentAdd.get(REQUEST_PROPERTIES, "enabled").set(toStart);
list.add(deploymentAdd);