Skip to content

Commit

Permalink
fix clash on azureBlobStorageData (#4964)
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardmedia authored Jul 27, 2021
1 parent b525c32 commit a00bfa8
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 a00bfa8

Please sign in to comment.