-
Bug
-
Resolution: Done
-
Major
-
10.0.0.Beta1
Addon patches are added to the wrong instance of ModelNode which breaks the CLI `patch info --verbose`. Here is how it should be fixed
diff --git a/patching/src/main/java/org/jboss/as/patching/tool/PatchOperationTarget.java b/patching/src/main/java/org/jboss/as/patching/tool/PatchOperationTarget.java index e739c73847..4901ccc25d 100644 --- a/patching/src/main/java/org/jboss/as/patching/tool/PatchOperationTarget.java +++ b/patching/src/main/java/org/jboss/as/patching/tool/PatchOperationTarget.java @@ -183,9 +183,10 @@ public abstract class PatchOperationTarget { } } if(vInfo.hasAddOns()) { - final ModelNode layerNode = result.get(Constants.ADD_ON); + final ModelNode layersNode = result.get(Constants.ADD_ON); for(String name : vInfo.getAddOnNames()) { final TargetInfo layerInfo = vInfo.getAddOnInfo(name); + final ModelNode layerNode = layersNode.get(name); layerNode.get(Constants.CUMULATIVE).set(layerInfo.getCumulativePatchID()); final ModelNode patchesNode = layerNode.get(Constants.PATCHES).setEmptyList(); if(!layerInfo.getPatchIDs().isEmpty()) {