Skip to content

Commit

Permalink
chores: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ekristen committed Jul 20, 2023
1 parent 869c85e commit ca3cedf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/awsutil/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func (c *Credentials) rootSession() (*session.Session, error) {
},
}
case c.HasProfile() && c.HasKeys():
return nil, fmt.Errorf("You have to specify a profile or credentials for at least one region.")
return nil, fmt.Errorf("you have to specify a profile or credentials for at least one region")

case c.HasKeys():
opts = session.Options{
Expand Down
4 changes: 2 additions & 2 deletions resources/iam-roles.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ func (e *IAMRole) Remove() error {
return nil
}

func (role *IAMRole) Properties() types.Properties {
func (e *IAMRole) Properties() types.Properties {
properties := types.NewProperties()
for _, tagValue := range role.tags {
for _, tagValue := range e.tags {
properties.SetTag(tagValue.Key, tagValue.Value)
}

Expand Down
2 changes: 1 addition & 1 deletion resources/iam-users.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func GetIAMUser(svc *iam.IAM, userName *string) (*iam.User, error) {

func ListIAMUsers(sess *session.Session) ([]Resource, error) {
svc := iam.New(sess)
resources := []Resource{}
var resources []Resource

err := svc.ListUsersPages(nil, func(page *iam.ListUsersOutput, lastPage bool) bool {
for _, out := range page.Users {
Expand Down

0 comments on commit ca3cedf

Please sign in to comment.