Skip to content

Commit

Permalink
add -p to mkdir to avoid error
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Oct 6, 2023
1 parent b6c40a1 commit 16126f1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,6 @@ tag: 2.0.1
- ou=ACCOUNT_ID
- gov.census.csvd:tf_module_version
- gov.census.csvd:account_alias

* 2.3.1 -- 2023-10-06
- add -p to mkdir so as not to cause a failure if multiple roles created at the same time
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ resource "null_resource" "role_ldif" {
}

provisioner "local-exec" {
command = "test -d ${path.root}/setup || mkdir ${path.root}/setup"
command = "test -d ${path.root}/setup || mkdir -p ${path.root}/setup"
}
provisioner "local-exec" {
command = "echo '${data.template_file.role[0].rendered}' > ${path.root}/setup/${local.role_name}.ldif"
Expand Down
2 changes: 1 addition & 1 deletion version.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
locals {
# _module_version = "1.4.0"
_module_version = "2.3.0"
_module_version = "2.3.1"
}

0 comments on commit 16126f1

Please sign in to comment.