Skip to content

Commit 0e76acb

Browse files
committed
compare group name instead of path
1 parent bc44528 commit 0e76acb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/redhat/labs/omp/service/GroupService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public Optional<Group> getGitLabGroupByName(String name, Integer parentId)
3737

3838
// look for a match between returned name and provided path
3939
for (Group group : groupList) {
40-
if (name.equals(group.getPath()) && parentId.equals(group.getParentId())) {
40+
if (name.equals(group.getName()) && parentId.equals(group.getParentId())) {
4141
return Optional.of(group);
4242
}
4343
}

0 commit comments

Comments
 (0)