From 1eb55c2ae3cb5b463d4c78f4e9f3e38dda9367a6 Mon Sep 17 00:00:00 2001 From: nywilken Date: Mon, 16 Dec 2019 14:08:36 -0500 Subject: [PATCH] builder/azure: Remove double override of GalleryImageVersionsClient.PollDuration This change fixes an issues where custom timeouts set for the GalleryImagesVersionClient was being over written by the default client poll duration. --- builder/azure/arm/azure_client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/azure/arm/azure_client.go b/builder/azure/arm/azure_client.go index 10f593726..67c293366 100644 --- a/builder/azure/arm/azure_client.go +++ b/builder/azure/arm/azure_client.go @@ -237,7 +237,7 @@ func NewAzureClient(subscriptionID, resourceGroupName, storageAccountName string azureClient.GalleryImagesClient.RequestInspector = withInspection(maxlen) azureClient.GalleryImagesClient.ResponseInspector = byConcatDecorators(byInspecting(maxlen), errorCapture(azureClient)) azureClient.GalleryImagesClient.UserAgent = fmt.Sprintf("%s %s", useragent.String(), azureClient.GalleryImagesClient.UserAgent) - azureClient.GalleryImageVersionsClient.Client.PollingDuration = PollingDuration + azureClient.GalleryImagesClient.Client.PollingDuration = PollingDuration keyVaultURL, err := url.Parse(cloud.KeyVaultEndpoint) if err != nil {