mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
providers/azurerm: more reliable testing of ID being available for
storage account
This commit is contained in:
parent
ecad167e31
commit
31dbddbfdc
@ -155,7 +155,7 @@ func resourceArmStorageAccountCreate(d *schema.ResourceData, meta interface{}) e
|
||||
read, err := storageClient.GetProperties(resourceGroupName, storageAccountName)
|
||||
|
||||
// Set the ID right away if we have one
|
||||
if read != nil && read.ID != nil {
|
||||
if err == nil && read.ID != nil {
|
||||
log.Printf("[INFO] storage account %q ID: %q", storageAccountName, *read.ID)
|
||||
d.SetId(*read.ID)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user