Skip to content

Commit

Permalink
Fix aws group
Browse files Browse the repository at this point in the history
  • Loading branch information
nabbar committed Apr 30, 2024
1 parent 2fed80b commit 00dee5e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions aws/group/group.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,6 @@ func (cli *client) detachPoliciesFromGroup(groupName string) error {
func (cli *client) DetachGroups(prefix string) ([]string, error) {
var detachedGroupNames []string
err := cli.Walk(prefix, func(group types.Group) bool {
if *group.GroupName == "FullAccessGroup" || *group.GroupName == "ReadOnlyGroup" {
return true
}

if err := cli.detachPoliciesFromGroup(*group.GroupName); err != nil {
return false
}
Expand Down

0 comments on commit 00dee5e

Please sign in to comment.