Skip to content

Commit

Permalink
fix clash on azureBlobStorageData (GoogleCloudPlatform#4964)
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardmedia authored and khajduczenia committed Oct 12, 2021
1 parent 2e2b967 commit 67f44a3
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 67f44a3

Please sign in to comment.