Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
romg67 committed Aug 22, 2024
1 parent bf6257b commit 2fe4f2b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/postgres/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ import (

"github.com/go-logr/logr"
"github.com/lib/pq"
logf "sigs.k8s.io/controller-runtime/pkg/runtime/log"
)


type awspg struct {
pg
}
Expand Down Expand Up @@ -45,7 +47,7 @@ func (c *awspg) CreateUserRole(role, password string, iamAuthentication bool) (s
return "", err
}
if iamAuthentication {
err = c.GrantRole("rds_iam", c.user)
err = c.GrantRole("rds_iam", role)
if err != nil {
return "", err
}
Expand Down

0 comments on commit 2fe4f2b

Please sign in to comment.