Skip to content

Commit b94d49f

Browse files
committed
Avoid double encoding of source_path strings
1 parent 632f211 commit b94d49f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ data "external" "archive_prepare" {
2828

2929
artifacts_dir = var.artifacts_dir
3030
runtime = var.runtime
31-
source_path = jsonencode(var.source_path)
31+
source_path = try(tostring(var.source_path), jsonencode(var.source_path))
3232
hash_extra = var.hash_extra
3333
hash_extra_paths = jsonencode(
3434
[

0 commit comments

Comments
 (0)