From 472d9833d84a048b520681abc9cf3f13c0e4b764 Mon Sep 17 00:00:00 2001 From: jo Date: Fri, 31 May 2024 12:12:32 +0200 Subject: [PATCH] refactor: remove unused data --- builder/hcloud/artifact_test.go | 1 - builder/hcloud/builder.go | 1 - 2 files changed, 2 deletions(-) diff --git a/builder/hcloud/artifact_test.go b/builder/hcloud/artifact_test.go index 3b18c5d0..1f512367 100644 --- a/builder/hcloud/artifact_test.go +++ b/builder/hcloud/artifact_test.go @@ -70,7 +70,6 @@ func TestArtifactState_hcpPackerRegistryMetadata(t *testing.T) { StateData: map[string]interface{}{ "source_image": "ubuntu-24.04", "source_image_id": int64(161547269), - "region": "hel1", "server_type": "cpx11", }, } diff --git a/builder/hcloud/builder.go b/builder/hcloud/builder.go index 196d15c9..149c422d 100644 --- a/builder/hcloud/builder.go +++ b/builder/hcloud/builder.go @@ -106,7 +106,6 @@ func (b *Builder) Run(ctx context.Context, ui packersdk.Ui, hook packersdk.Hook) "generated_data": state.Get(StateGeneratedData), "source_image": b.config.Image, "source_image_id": state.Get(StateSourceImageID), - "region": b.config.Location, "server_type": b.config.ServerType, }, }