You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 14, 2020. It is now read-only.
Terraform Version
Terraform v0.12.24
Affected Resource(s)
Please list the resources as a list, for example:
Expected Behavior
When running :
where
db_owner
is the role of the user(db_owner@<host>
) given to the provider, we expect this to execute: https://github.com/terraform-providers/terraform-provider-postgresql/blob/3e2ad5faafb4c74b8a688d2c03dd633841f3f941/postgresql/resource_postgresql_default_privileges.go#L243Actual Behavior
Error message:
It looks like it should check if "db_owner" is the same role as that of the user given to the provider and in this case return at line 53:
https://github.com/terraform-providers/terraform-provider-postgresql/blob/3e2ad5faafb4c74b8a688d2c03dd633841f3f941/postgresql/helpers.go#L51-L54
However, it seems to check the username against the role:
https://github.com/terraform-providers/terraform-provider-postgresql/blob/3e2ad5faafb4c74b8a688d2c03dd633841f3f941/postgresql/resource_postgresql_default_privileges.go#L104
https://github.com/terraform-providers/terraform-provider-postgresql/blob/3e2ad5faafb4c74b8a688d2c03dd633841f3f941/postgresql/resource_postgresql_default_privileges.go#L117
and so presumably it runs:
which errors
The text was updated successfully, but these errors were encountered: