Skip to content

Commit 02be1d9

Browse files
committed
Add try block in manifest source
1 parent 1df4c81 commit 02be1d9

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • modules/management/kubectl-apply

modules/management/kubectl-apply/main.tf

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ locals {
2929
# 2. Identify URL-based manifests
3030
url_manifests = {
3131
for index, manifest in local.enabled_manifests : index => manifest
32-
if try(manifest.source, "") != "" && (
33-
startswith(manifest.source, "http://") || startswith(manifest.source, "https://")
34-
)
32+
if startswith(try(manifest.source, ""), "http://") || startswith(try(manifest.source, ""), "https://")
3533
}
3634

3735
# 3. Rebuild the map by populating the 'content' field for URLs based manifest

0 commit comments

Comments
 (0)