Skip to content

Commit

Permalink
Inject sentry_dsn as a string and expand vars in it (#46)
Browse files Browse the repository at this point in the history
* Inject sentry_dsn as a string and expand vars in it

* use self._app_environment as a property
  • Loading branch information
plars authored Oct 3, 2023
1 parent d5e9f35 commit a09d342
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/charm/src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def _pebble_layer(self) -> Layer:
]
),
"startup": "enabled",
"environment": self._app_environment(),
"environment": self._app_environment,
}
},
}
Expand Down
2 changes: 1 addition & 1 deletion terraform/test-observer.tf
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ resource "juju_application" "test-observer-api" {
config = {
hostname = var.environment == "staging" ? "test-observer-api-staging.${var.external_ingress_hostname}" : "test-observer-api.${var.external_ingress_hostname}"
port = var.environment == "development" ? 30000 : 443
sentry_dsn = {local.sentry_dsn_map[var.environment]}
sentry_dsn = "${local.sentry_dsn_map[var.environment]}"
}

units = 1
Expand Down

0 comments on commit a09d342

Please sign in to comment.