Skip to content

Commit

Permalink
Reorder output
Browse files Browse the repository at this point in the history
  • Loading branch information
liggitt committed Oct 26, 2017
1 parent 90724ab commit b3f140b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/audit2rbac/audit2rbac.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,19 +245,19 @@ func (a *Audit2RBACOptions) Run() error {
}
fmt.Fprintln(os.Stdout, "---")
}
for _, obj := range generated.ClusterRoles {
for _, obj := range generated.Roles {
printSeparator()
pkg.Output(os.Stdout, obj, "yaml")
}
for _, obj := range generated.ClusterRoleBindings {
for _, obj := range generated.ClusterRoles {
printSeparator()
pkg.Output(os.Stdout, obj, "yaml")
}
for _, obj := range generated.Roles {
for _, obj := range generated.RoleBindings {
printSeparator()
pkg.Output(os.Stdout, obj, "yaml")
}
for _, obj := range generated.RoleBindings {
for _, obj := range generated.ClusterRoleBindings {
printSeparator()
pkg.Output(os.Stdout, obj, "yaml")
}
Expand Down

0 comments on commit b3f140b

Please sign in to comment.