Skip to content

Commit

Permalink
ci: fix case missing group_Id
Browse files Browse the repository at this point in the history
  • Loading branch information
huayuenh committed Jul 10, 2024
1 parent 39770be commit f2de4a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prereqs/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ resource "ibm_sm_secret_group" "sm_secret_group" {
}

data "ibm_sm_secret_group" "existing_sm_secret_group" {
count = ((var.create_secret_group == false) && (var.sm_exists == true)) ? 1 : 0
count = ((var.create_secret_group == false) && (var.sm_exists == true) && (local.secret_group_id != "")) ? 1 : 0
instance_id = (local.sm_instance_id != "") ? local.sm_instance_id : var.sm_instance_id
region = var.sm_location
secret_group_id = local.secret_group_id
Expand Down

0 comments on commit f2de4a9

Please sign in to comment.