Skip to content

Commit

Permalink
chore: update public key log
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-yurchenko committed Mar 4, 2021
1 parent 550c870 commit 32d4703
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions internal/app/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (

// Config represents a remote configuration
type Config struct {
Users map[string]string `json:"users"`
ServerGroups map[string]Members `json:"server_groups"`
Users map[string]string `json:"users"`
ServerGroups map[string]*Members `json:"server_groups"`
}

// Members ia a single server group in a configuration
Expand Down
4 changes: 2 additions & 2 deletions internal/app/loops.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ USERS:
}

if result {
log.Infof("updated user %v public key", user)
log.Infof("updated public key for user: %v", user)
}

continue USERS
Expand Down Expand Up @@ -62,7 +62,7 @@ SUDOERS:
}

if result {
log.Infof("updated user %v public key", sudoer)
log.Infof("updated public key for user: %v", sudoer)
}

continue SUDOERS
Expand Down

0 comments on commit 32d4703

Please sign in to comment.