Skip to content

Commit

Permalink
fix(authorization-ranger):the descr field of ranger table x_group is …
Browse files Browse the repository at this point in the history
…not null
  • Loading branch information
yangyx committed Sep 20, 2024
1 parent 7c10cde commit d12c88f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ public Boolean onUserAcquired(User user) throws RuntimeException {

@Override
public Boolean onGroupAdded(Group group) throws RuntimeException {
return rangerClient.createGroup(VXGroup.builder().withName(group.name()).build());
return rangerClient.createGroup(VXGroup.builder().withName(group.name()).withDescription(group.name()).build());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ public Builder withName(String name) {
return this;
}

public Builder withDescription(String description) {
vxGroup.description = description;
return this;
}

public VXGroup build() {
return vxGroup;
}
Expand Down

0 comments on commit d12c88f

Please sign in to comment.