Fix execute_group_by_id

* All other group checks for IAM have no credential report.
* ${GROUP_ID[$1]} is invalid as first parameter is group_id
This commit is contained in:
Joaquin Rinaudo
2020-09-07 16:09:10 +02:00
committed by GitHub
parent 2186f648c8
commit e1fb89838a

View File

@@ -395,11 +395,10 @@ execute_group() {
# Function to execute group by name # Function to execute group by name
execute_group_by_id() { execute_group_by_id() {
if [ "${GROUP_ID[$1]}" == "group1" ]; then
genCredReport genCredReport
saveReport saveReport
fi for i in "${!GROUP_ID[@]}"; do
for i in "${!GROUP_ID[@]}"; do
if [ "${GROUP_ID[$i]}" == "$1" ]; then if [ "${GROUP_ID[$i]}" == "$1" ]; then
execute_group ${i} $2 execute_group ${i} $2
fi fi