Skip to content

Commit

Permalink
Fix error message for grant iam group (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
loganintech authored Feb 14, 2024
1 parent 3c5ac01 commit 6f7fb3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/connector/iam_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func iamGroupProfile(ctx context.Context, group iamTypes.Group) map[string]inter

func (o *iamGroupResourceType) Grant(ctx context.Context, principal *v2.Resource, entitlement *v2.Entitlement) ([]*v2.Grant, annotations.Annotations, error) {
if principal.Id.ResourceType != resourceTypeIAMUser.Id {
return nil, nil, errors.New("baton-aws: only iam users can be removed from iam group")
return nil, nil, errors.New("baton-aws: only iam users can be added to iam group")
}

groupName, err := iamGroupNameFromARN(entitlement.Resource.Id.Resource)
Expand Down

0 comments on commit 6f7fb3a

Please sign in to comment.