Skip to content

Commit ba9cb6d

Browse files
committed
attempting ends with
1 parent 5146af8 commit ba9cb6d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

filebrowser/main.tf

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
terraform {
2-
required_version = ">= 1.0"
2+
required_version = ">= 1.3"
33

44
required_providers {
55
coder = {
@@ -20,7 +20,8 @@ variable "database_path" {
2020
description = "The path to the filebrowser database."
2121
default = "filebrowser.db"
2222
validation {
23-
condition = can(regex(".*filebrowser\\.db$", var.database_path))
23+
condition = endswith(var.database_path, "filebrowser.db")
24+
# condition = can(regex(".*filebrowser\\.db$", var.database_path))
2425
error_message = "The database_path must end with 'filebrowser.db'."
2526
}
2627
}

0 commit comments

Comments
 (0)