Skip to content

Commit 31f173f

Browse files
committed
fix: Skip tag retrieval without namespace ID
Signed-off-by: Devon Crouse <[email protected]>
1 parent affa1cc commit 31f173f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/iam/tagging.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ data "oci_identity_tag_namespaces" "oke" {
1414
}
1515

1616
data "oci_identity_tags" "oke" {
17-
count = var.create_iam_resources ? 1 : 0
17+
count = var.create_iam_resources && local.tag_namespace_id_found != null ? 1 : 0
1818
provider = oci.home
1919
tag_namespace_id = local.tag_namespace_id_found
2020
state = "ACTIVE" // TODO Support reactivation of retired tag w/ update

0 commit comments

Comments
 (0)