Blob Blame History Raw
From 90e25645571c35eded44e00f343245884cc60a85 Mon Sep 17 00:00:00 2001
From: andyzhangx <xiazhang@microsoft.com>
Date: Fri, 13 Mar 2020 09:15:35 +0000
Subject: [PATCH] fix: make changes due to azure sdk upgrade

feat: fix disks client failure

fix: revert api-version change

revert disks client change

Kubernetes-commit: dd9474e78ebc3f10caf8d2ea3a9bccc7cb8736ec
---
 azure/azure_blobDiskController.go         | 4 ++--
 azure/azure_managedDiskController.go      | 6 +++---
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/azure/azure_blobDiskController.go b/azure/azure_blobDiskController.go
index 9dc6c45..6c59cf4 100644
--- a/azure/azure_blobDiskController.go
+++ b/azure/azure_blobDiskController.go
--- legacy-cloud-providers-kubernetes-1.18.3/azure/azure_blobDiskController.go.orig	2020-05-20 19:20:19.000000000 +0200
+++ legacy-cloud-providers-kubernetes-1.18.3/azure/azure_blobDiskController.go	2020-08-18 22:07:29.305460243 +0200
@@ -344,7 +344,7 @@ func (c *BlobDiskController) ensureDefau
 	}
 
 	// account exists but not ready yet
-	if provisionState != storage.ProvisioningStateSucceeded {
+	if provisionState != storage.Succeeded {
 		// we don't want many attempts to validate the account readiness
 		// here hence we are locking
 		counter := 1
@@ -375,7 +375,7 @@ func (c *BlobDiskController) ensureDefau
 				return false, nil // error performing the query - retryable
 			}
 
-			if provisionState == storage.ProvisioningStateSucceeded {
+			if provisionState == storage.Succeeded {
 				return true, nil
 			}