Skip to content

Commit

Permalink
vault: bug fix for allocationParent init
Browse files Browse the repository at this point in the history
  • Loading branch information
pdowler committed Jun 24, 2024
1 parent a3d5ee3 commit e1f1258
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,20 +234,20 @@ private void initRootNode() {
for (String ap : VaultInitAction.getAllocationParents(config)) {
if (ap.isEmpty()) {
// allocations are in root
aps.add(root);
aps.add(rn);
log.info("allocationParent: /");
} else {
try {

// simple top-level names only
ContainerNode cn = (ContainerNode) get(root, ap);
ContainerNode cn = (ContainerNode) get(rn, ap);
String str = "";
if (cn == null) {
cn = new ContainerNode(ap);
cn.parent = root;
cn.parent = rn;
cn.isPublic = true;
cn.inheritPermissions = false;
cn.owner = root.owner;
cn.owner = rn.owner;
str = "created/";
put(cn);
}
Expand Down

0 comments on commit e1f1258

Please sign in to comment.