From 8c81d44aaeeeb372ad49675a66003d8dc060caa9 Mon Sep 17 00:00:00 2001 From: Adrian Stobbe Date: Mon, 23 Oct 2023 19:33:10 +0200 Subject: [PATCH] fixup! init tf module --- cli/internal/state/state.go | 4 +-- .../terraform/constellation-cluster/main.tf | 13 +++++-- .../constellation-cluster/variables.tf | 36 +++++++++---------- cli/internal/terraform/terraform/main.tf | 3 ++ cli/internal/terraform/terraform/variables.tf | 25 +++++++++++-- 5 files changed, 54 insertions(+), 27 deletions(-) diff --git a/cli/internal/state/state.go b/cli/internal/state/state.go index 7671acf90b..35cb5bcbf1 100644 --- a/cli/internal/state/state.go +++ b/cli/internal/state/state.go @@ -204,9 +204,9 @@ func (h *HexBytes) UnmarshalYAML(unmarshal func(any) error) error { bytes, err := hex.DecodeString(hexString) if err != nil { - return fmt.Errorf("decoding hex bytes: %w", err) + *h = []byte(hexString) // was not hex encoded in Terraform + return nil // TODO fix: encode in terraform? } - *h = bytes return nil } diff --git a/cli/internal/terraform/terraform/constellation-cluster/main.tf b/cli/internal/terraform/terraform/constellation-cluster/main.tf index ba42285f4a..a20df4a9df 100644 --- a/cli/internal/terraform/terraform/constellation-cluster/main.tf +++ b/cli/internal/terraform/terraform/constellation-cluster/main.tf @@ -9,8 +9,11 @@ resource "terraform_data" "prepare_config" { #} // TODO only once provisioner "local-exec" { command = <