From b17857c1fefc0b09da2ed2711b20ba76930dd365 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20T=C3=B6lle?= Date: Sun, 5 May 2024 01:10:06 +0200 Subject: [PATCH] fix: update user-agent in CLI (#5) --- cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index e654efc..3d0b247 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -81,7 +81,7 @@ func newClient(ctx context.Context) *hcloudimages.Client { opts := []hcloud.ClientOption{ hcloud.WithToken(os.Getenv("HCLOUD_TOKEN")), - hcloud.WithApplication("hcloud-image", ""), + hcloud.WithApplication("hcloud-upload-image", version.Version), hcloud.WithPollBackoffFunc(backoff.ExponentialBackoffWithLimit(2, 1*time.Second, 30*time.Second)), }