Skip to content

Commit

Permalink
Merge pull request #47 from lgallard/release/0.12.1
Browse files Browse the repository at this point in the history
Release 0.12.1
  • Loading branch information
lgallard authored Jan 2, 2022
2 parents eb54469 + 5d6e856 commit 141276c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 0.12.1 (Jan 2, 2022)

FIXES:

* Fix error when missing optional vault_value (thanks @ElSamhaa)
* Align example readme with code (thanks @daniel-habib)

## 0.12.0 (July 16, 2021)

ENHANCEMENTS:
Expand Down
8 changes: 1 addition & 7 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,7 @@ resource "aws_backup_plan" "ab_plan" {
for_each = local.rules
content {
rule_name = lookup(rule.value, "name", null)
target_vault_name = (
lookup(rule.value, "target_vault_name", null) != null ?
rule.value.target_vault_name :
var.vault_name != null ?
var.vault_name :
"Default"
)
target_vault_name = lookup(rule.value, "target_vault_name", null) != null ? rule.value.target_vault_name : var.vault_name != null ? var.vault_name : "Default"
schedule = lookup(rule.value, "schedule", null)
start_window = lookup(rule.value, "start_window", null)
completion_window = lookup(rule.value, "completion_window", null)
Expand Down

0 comments on commit 141276c

Please sign in to comment.