From a00bfa8efaca6a9362eed5b810026ca5629e001f Mon Sep 17 00:00:00 2001 From: Edward Sun <42220489+edwardmedia@users.noreply.github.com> Date: Mon, 26 Jul 2021 17:57:37 -0700 Subject: [PATCH] fix clash on azureBlobStorageData (#4964) --- .../terraform/resources/resource_storage_transfer_job.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mmv1/third_party/terraform/resources/resource_storage_transfer_job.go b/mmv1/third_party/terraform/resources/resource_storage_transfer_job.go index e3a50985e909..353313a770b4 100644 --- a/mmv1/third_party/terraform/resources/resource_storage_transfer_job.go +++ b/mmv1/third_party/terraform/resources/resource_storage_transfer_job.go @@ -842,6 +842,11 @@ func expandAzureBlobStorageData(azureBlobStorageDatas []interface{}) *storagetra } azureBlobStorageData := azureBlobStorageDatas[0].(map[string]interface{}) + + if azureBlobStorageData["sas_token"] == nil { + log.Printf("[DEBUG] sas_token is not found") + return nil + } return &storagetransfer.AzureBlobStorageData{ Container: azureBlobStorageData["container"].(string), Path: azureBlobStorageData["path"].(string),