Skip to content

Commit 8a051bb

Browse files
fix: remove defaults from hcloud_token and ssh_key variables to allow default template to build
1 parent 722d6be commit 8a051bb

File tree

1 file changed

+1
-3
lines changed
  • registry/melmathari/templates/hetzner-cloud

1 file changed

+1
-3
lines changed

registry/melmathari/templates/hetzner-cloud/main.tf

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@ variable "hcloud_token" {
1616
description = "Hetzner Cloud API token for authentication"
1717
type = string
1818
sensitive = true
19-
default = ""
2019
}
2120

2221
# Configure the Hetzner Cloud Provider
2322
provider "hcloud" {
24-
token = var.hcloud_token != "" ? var.hcloud_token : null
23+
token = var.hcloud_token
2524
}
2625

2726
data "coder_workspace" "me" {}
@@ -209,7 +208,6 @@ variable "ssh_key_id" {
209208
$ hcloud ssh-key list
210209
EOF
211210
sensitive = true
212-
default = 0
213211

214212
validation {
215213
condition = var.ssh_key_id >= 0

0 commit comments

Comments
 (0)