azurerm_storage_account now returns storage keys value instead of their names (#7674)
This commit is contained in:
parent
bb51834a4d
commit
d9e3beb276
|
@ -223,8 +223,8 @@ func resourceArmStorageAccountRead(d *schema.ResourceData, meta interface{}) err
|
||||||
}
|
}
|
||||||
|
|
||||||
accessKeys := *keys.Keys
|
accessKeys := *keys.Keys
|
||||||
d.Set("primary_access_key", accessKeys[0].KeyName)
|
d.Set("primary_access_key", accessKeys[0].Value)
|
||||||
d.Set("secondary_access_key", accessKeys[1].KeyName)
|
d.Set("secondary_access_key", accessKeys[1].Value)
|
||||||
d.Set("location", resp.Location)
|
d.Set("location", resp.Location)
|
||||||
d.Set("account_type", resp.Sku.Name)
|
d.Set("account_type", resp.Sku.Name)
|
||||||
d.Set("primary_location", resp.Properties.PrimaryLocation)
|
d.Set("primary_location", resp.Properties.PrimaryLocation)
|
||||||
|
|
Loading…
Reference in New Issue