From 9341259967bb2b657e336630431e1270b6f765e4 Mon Sep 17 00:00:00 2001 From: Jenya Privalov Date: Tue, 18 Aug 2020 15:46:19 +0300 Subject: [PATCH] remove queue creating in azure queue scaler (#1001) Signed-off-by: jenya --- pkg/scalers/azure/azure_queue.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkg/scalers/azure/azure_queue.go b/pkg/scalers/azure/azure_queue.go index 642d1109ba3..baa8787e217 100644 --- a/pkg/scalers/azure/azure_queue.go +++ b/pkg/scalers/azure/azure_queue.go @@ -16,11 +16,6 @@ func GetAzureQueueLength(ctx context.Context, podIdentity string, connectionStri p := azqueue.NewPipeline(credential, azqueue.PipelineOptions{}) serviceURL := azqueue.NewServiceURL(*endpoint, p) queueURL := serviceURL.NewQueueURL(queueName) - _, err = queueURL.Create(ctx, azqueue.Metadata{}) - if err != nil { - return -1, err - } - props, err := queueURL.GetProperties(ctx) if err != nil { return -1, err