File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -80,8 +80,9 @@ func (auditor *AzureAuditor) enrichAzureObjectsWithSubscription(ctx context.Cont
80
80
}
81
81
82
82
// enrich with roledefinition information
83
- if val , ok := (* row )["roledefinition.id" ].(string ); ok && val != "" {
84
- if roleDefinition , ok := roleDefinitionList [val ]; ok {
83
+ if roleDefinitionId , ok := (* row )["roledefinition.id" ].(string ); ok && roleDefinitionId != "" {
84
+ roleDefinitionId = strings .ToLower (roleDefinitionId )
85
+ if roleDefinition , ok := roleDefinitionList [strings .ToLower (roleDefinitionId )]; ok {
85
86
obj ["roledefinition.name" ] = to .String (roleDefinition .RoleName )
86
87
obj ["roledefinition.type" ] = to .String (roleDefinition .RoleType )
87
88
obj ["roledefinition.description" ] = to .String (roleDefinition .Description )
You can’t perform that action at this time.
0 commit comments