fix: update user-agent in CLI (#5)

This commit is contained in:
Julian Tölle 2024-05-05 01:10:06 +02:00 committed by GitHub
parent d7cdf210d2
commit b17857c1fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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