Skip to content

Commit

Permalink
fix(roles): output rolename null if var.create_role is false
Browse files Browse the repository at this point in the history
  • Loading branch information
jindraj committed Sep 23, 2024
1 parent 259fa31 commit 590bc30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/access/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
output "rolename" {
value = postgresql_role.this[0].name
value = var.create_role ? postgresql_role.this[0].name: null
}

output "password" {
Expand Down

0 comments on commit 590bc30

Please sign in to comment.