modules/plugins/augeas/src/main/java/org/rhq/plugins/augeas/AugeasConfigurationComponent.java
| 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit c2c76dd29e7592715432d0a563c87ac9878b3726
Author: Partha Aji <paji(a)redhat.com>
Date: Fri Oct 30 19:42:45 2009 -0400
Fixed a broken sudoers add configuration thanks to changes in Base component
diff --git
a/modules/plugins/augeas/src/main/java/org/rhq/plugins/augeas/AugeasConfigurationComponent.java
b/modules/plugins/augeas/src/main/java/org/rhq/plugins/augeas/AugeasConfigurationComponent.java
index 2202a0f..401075a 100644
---
a/modules/plugins/augeas/src/main/java/org/rhq/plugins/augeas/AugeasConfigurationComponent.java
+++
b/modules/plugins/augeas/src/main/java/org/rhq/plugins/augeas/AugeasConfigurationComponent.java
@@ -525,7 +525,11 @@ public class AugeasConfigurationComponent<T extends
ResourceComponent> implement
} else {
// The maps in the list are non-keyed, or there is no map in the list
with the same key as the map
// being added, so create a new node for the map to add to the list.
- memberNodeToUpdate = getNewListMemberNode(listNode, listMemberPropDefMap,
listIndex++);
+ AugeasNode basePathNode = getNewListMemberNode(listNode,
listMemberPropDefMap, listIndex);
+ String var = "prop" + listIndex;
+ augeas.defineNode(var, basePathNode.getPath(), null);
+ memberNodeToUpdate = new AugeasNode("$" + var);
+ listIndex++;
}
// Update the node's children.
Show replies by date