Migrate grants to more structured output (#194)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2020-07-16 22:18:27 -04:00
1 parent 1a1d3058c9
commit 99653727bb
19 files changed
+757 -642

No files matched your search

+3 -3
View File
@@ -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),
)
}