azurerm_storage_account now returns storage keys value instead of their names (#7674)

This commit is contained in:
shanoor 2016-07-16 17:36:15 +04:00 committed by Paul Stack
parent bb51834a4d
commit d9e3beb276
1 changed files with 2 additions and 2 deletions

View File

@ -223,8 +223,8 @@ func resourceArmStorageAccountRead(d *schema.ResourceData, meta interface{}) err
}
accessKeys := *keys.Keys
d.Set("primary_access_key", accessKeys[0].KeyName)
d.Set("secondary_access_key", accessKeys[1].KeyName)
d.Set("primary_access_key", accessKeys[0].Value)
d.Set("secondary_access_key", accessKeys[1].Value)
d.Set("location", resp.Location)
d.Set("account_type", resp.Sku.Name)
d.Set("primary_location", resp.Properties.PrimaryLocation)