Skip to content

Commit

Permalink
Print message while loading audit source
Browse files Browse the repository at this point in the history
  • Loading branch information
liggitt committed Sep 12, 2017
1 parent 873b124 commit bc054cd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/audit2rbac/audit2rbac.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,12 @@ func (a *Audit2RBACOptions) Validate() error {
func (a *Audit2RBACOptions) Run() error {
hasErrors := false

if len(a.AuditSources) == 1 {
fmt.Fprintln(a.Stderr, "Opening audit source...")
} else {
fmt.Fprintln(a.Stderr, "Opening audit sources...")
}

streams, streamErrors := openStreams(a.AuditSources)
for _, err := range streamErrors {
hasErrors = true
Expand Down

0 comments on commit bc054cd

Please sign in to comment.