Skip to content

Commit

Permalink
fix: -auto-approve flag and extension
Browse files Browse the repository at this point in the history
  • Loading branch information
k3yss committed Aug 10, 2024
1 parent d4ef37e commit 843f874
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/gcp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ destroy-bootstrap:

destroy-postgresql:
cd postgresql \
&& $(TF) destroy || true \
&& $(TF) destroy -auto-approve || true \
&& $(TF) state rm module.postgresql.google_sql_user.admin || true \
&& $(TF) destroy
&& $(TF) destroy -auto-approve

.PHONY: bootstrap inception platform smoketest postgresql
2 changes: 1 addition & 1 deletion modules/postgresql/gcp/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ resource "random_id" "db_name_suffix" {
}

resource "postgresql_extension" "pglogical" {
for_each = local.upgradable ? toset(var.databases) : []
for_each = local.upgradable ? toset(local.migration_databases) : []
name = "pglogical"
database = each.value
depends_on = [
Expand Down

0 comments on commit 843f874

Please sign in to comment.