We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76ebccf commit 4aef498Copy full SHA for 4aef498
ci-scripts/rhdh-setup/create_resource.sh
@@ -417,10 +417,12 @@ create_user() {
417
;;
418
"$RBAC_POLICY_NESTED_GROUPS")
419
[[ $grp -eq 0 ]] && grp=${GROUP_COUNT}
420
- if [[ $grp -eq 1 || $grp -gt ${RBAC_POLICY_SIZE} ]]; then
+ if [[ $grp -eq $RBAC_POLICY_SIZE ]]; then
421
+ groups="$groups\"g1\""
422
+ elif [[ $grp -gt ${RBAC_POLICY_SIZE} ]]; then
423
groups="$groups\"g${grp}\""
424
else
- group_name="g$((grp - 1))_1"
425
+ group_name="g$((RBAC_POLICY_SIZE - grp))_1"
426
group_path=$(get_group_path_by_name "$group_name")
427
groups="$groups\"$group_path\""
428
fi
0 commit comments