Skip to content

Conversation

@geezyx
Copy link
Contributor

@geezyx geezyx commented Apr 8, 2025

The current method of trimming the role/ prefix splits the resource name by / and returns the second element. If you use a pathed role name like role/pod-identity/my-role then this will only display pod-identity in the output, rather than the full role name pod-identity/my-role.

This PR uses TrimPrefix to remove role/ instead, preserving the full role name for output.

@christophetd
Copy link
Collaborator

Great contribution, thanks!

@christophetd christophetd merged commit 3276a4e into DataDog:main May 1, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants