fix: update user-agent in CLI

This commit is contained in:
Julian Tölle 2024-05-05 01:08:03 +02:00
parent d7cdf210d2
commit d3966856f6

View file

@ -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)),
}