Migrate grants to more structured output (#194)
This commit is contained in:
1 parent
1a1d3058c9
commit
99653727bb
19 files changed
+757
-642
No files matched your search
@@ -217,14 +217,14 @@ func generateRoleTableOutput(role *roles.Role) string {
|
||||
fmt.Sprintf(" Scope ID: %s", principal.ScopeId),
|
||||
)
|
||||
}
|
||||
if len(role.GrantsCanonical) > 0 {
|
||||
if len(role.Grants) > 0 {
|
||||
output = append(output,
|
||||
fmt.Sprintf(" Canonical Grants: %s", ""),
|
||||
)
|
||||
}
|
||||
for _, grant := range role.GrantsCanonical {
|
||||
for _, grant := range role.Grants {
|
||||
output = append(output,
|
||||
fmt.Sprintf(" %s", grant),
|
||||
fmt.Sprintf(" %s", grant.Canonical),
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user